Forum Moderators: phranque
I have this simple row on my .htaccess
ErrorDocument 404 /index.phpBut I always see default page and not this.
But isn't "index.php" your default page...? So the .htaccess directive is serving up exactly what you asked for...?
If you want to serve up a custom 404 page, make a separate page, named something like "404error.php", and put that in the ErrorDocument directive.
Eliz.
Jim
Take a look at your server error logs after requesting a non-existent page; The only other thing I can think of is that perhaps your errordocument location is incorrect -- maybe Apache can't find your custom error page. If so, this would show in the error log.
Also, remember to always flush your browser cache after making any change to your configuration files.
Jim