I am trying to set-up a custom 404 page that logs the error details, referrer etc.
In my htaccess file if I use an exact url, i.e.
ErrorDocument 404 http://www.mysite.com/404.php
It finds the page ok when there is an error.
If I use a relative url, i.e.:
ErrorDocument 404 /404.php
or
ErrorDocument 404 404.php
It doesn't like it. Any ideas?
I need to use a relative url as when I use an exact url it doesn't store the page requested by the user.
Thanks