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)
It should be in $_SERVER['HTTP_REFERER']  Yours is mispelled.
HTTP_REFERER doesn't have a double r. It's an unfortunate misspelling in the HTTP spec.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论