I am trying to have my 404 pages emailed to me for casualty control but am having problems retrieving the url that went bad.
When I use $_SERVER['REQUEST_URI'] I only get the actual 404 page not the bad link.
I have my .htacces redirect to
domain.com/404.php
Then at the top I use
echo $_SERVER['REQUEST_URI'];
and i get '/404.php'
Can this be a server configuration issue?
The server is installed with 4.3.11
Is there any other way to retrieve this bad link using php, or javascript?
Thanks
Scott