My 404 page (/404.php) works, it's sending the proper headers (404 - Not found).But the thing is, it's not giving the link that caused it (e.g. example.com/thisisnon-existant.htm) but instead it's giving my 404 page (example.com/404.php).How would I get it fixed?All I did was add the following to .htaccess:ErrorDocument 404 http://example.com/404.phpMy 404 page's code is here: http://pastebin.com/G7mQ4aT1.
404 page not showing URL
php;html;404
When you use the full url for ErrorDocument, Apache will always issue a redirect to that location.  You want to change your ErrorDocument directive to a relative path instead.ErrorDocument 404 /404.php