Posted by Michael Fesser on 09/23/07 20:16
..oO(Jensen Somers)
>You will have to create a .htaccess file, put it in the websites root
>folder and use the following line:
>
>ErrorDocument 404 http://www.mywebsite.tld/404.php
_Don't_ use an absolute URL in an ErrorDocument directive unless you
know exactly what you're doing. This will lead to a redirect and an
additional request of the given document, which usually results in the
status code 200 ("OK") sent back to the client instead of the correct
error code.
http://httpd.apache.org/docs/2.2/mod/core.html#errordocument
Micha
Navigation:
[Reply to this message]
|