Store
Community Documentation

v3 Knowledgebase

Script Redirection

Note: Client requested some information on how the script redirects.

Honestly not sure which section to place this information so feel free to move it.

The script handles redirections from the file:
include/library/phpfox/url/url.class.php

The method is:
PHP:
private function _send($sUrl)
    {
        
// Clean buffer
        
ob_clean();        

        
// Send the user to the new location
        
header('Location: ' $sUrl);
    } 


The actual redirection part is:
PHP:
header('Location: ' $sUrl); 


Anything that needs to be passed via a header() should be placed before that.