Forum Moderators: phranque
ErrorDocument 404 /error.php
If they go to /nopage.php they see /error.php but the url bar still shows /nopage.php. If they go to /nofolder/nopage.php they still see the /error.php page but the images and external style sheet won't work cause there in /nofolder.
How do completely redirect them to the 404 /error.php page?
Instead, best practice would be to change the image references in error.php from <img src="some_image.gif"> to <img src="/some_image.gif">. This will force the relative image URLs to be resolved relative to the root of your site, instead of the current directory.
Jim