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 (eg 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.php
My 404 page's code is here: http://pastebin.com/G7mQ4aT1