I've created a php 404 page not found and added it to my server settings, this works great.
I want the page to email me the url of the missing page (e.g. /folder/misspeltpagename.php)
but all I can get it the url of the 'page not found' page (e.g. /error-docs/not-found.php
).
I'm using $_SERVER['SCRIPT_NAME']
to get the url.