404 page with requesting url in php
I'm handling 404 error as follows - // in .htaccess ErrorDocument 404 /404.php It works nicely. But I would like to display the original URL he requesting. I am trying the following in my 404.php - echo $_SERVER['REQUEST_URI']; //but it…