Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-28-2010, 05:42 AM   PM User | #1
skcin7
Regular Coder

 
Join Date: Jul 2009
Posts: 186
Thanks: 72
Thanked 2 Times in 2 Posts
skcin7 is an unknown quantity at this point
.htaccess not working

Hello. I have Apache web server installed on my computer and I am designing websites using PHP and SQL, and I would like a .htaccess file to redirect a user to a 404 page if an invalid URL is typed. I have my .htaccess file in the same directory as all the other files, this is what is contained in it:

Code:
ErrorDocument 404 /404.php
However, that does not seem to be working. I think it may be a problem with Apache configuration file but nothing seems to be working. Help!
__________________
My website: http://www.nicholas-morgan.com/
skcin7 is offline   Reply With Quote
Old 10-01-2010, 05:59 AM   PM User | #2
skcin7
Regular Coder

 
Join Date: Jul 2009
Posts: 186
Thanks: 72
Thanked 2 Times in 2 Posts
skcin7 is an unknown quantity at this point
Hello. BUMP. Can I get some sort of reply?
__________________
My website: http://www.nicholas-morgan.com/
skcin7 is offline   Reply With Quote
Old 10-02-2010, 05:05 AM   PM User | #3
Tony M
Regular Coder

 
Join Date: Jun 2010
Posts: 132
Thanks: 8
Thanked 0 Times in 0 Posts
Tony M is on a distinguished road
I think You must enable .htaccess (I am not sure about it)
and You might read http://httpd.apache.org/docs/1.3/howto/htaccess.html and also You may read http://ubuntuforums.org/showthread.php?t=243656 and http://www.webmasterworld.com/forum92/2593.htm
Tony M is offline   Reply With Quote
Old 10-05-2010, 03:12 AM   PM User | #4
hernantz
Regular Coder

 
Join Date: Mar 2009
Posts: 116
Thanks: 29
Thanked 1 Time in 1 Post
hernantz is an unknown quantity at this point
also look at this(?) http://uploads.askapache.com/2008/08...rrordocconf.in
hernantz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:48 PM.


Advertisement
Log in to turn off these ads.