...

View Full Version : .htaccess not working



skcin7
09-28-2010, 05:42 AM
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:


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!:confused:

skcin7
10-01-2010, 05:59 AM
Hello. BUMP. Can I get some sort of reply?

Tony M
10-02-2010, 05:05 AM
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 :thumbsup:

hernantz
10-05-2010, 03:12 AM
also look at this(?) http://uploads.askapache.com/2008/08/httpd-multilang-errordocconf.in



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum