I m using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit).
$_SERVER[ HTTP_REFERER ] is empty
I printed out all of my global variables and most contain the link to pageNotFound.php.
How can I retrieve this information? (Server-Side is preferred)