Knowledgebase
I use CDSEO Pro and my site is not redirecting properly from https to http (4.1.x)
Posted by Nick Poindexter on 04 March 2010 04:22 PM
|
|
If your using CDSEO and your site is not redirecting properly from https to http, it is likely because your server has a problematic implementation of the $PHP_SELF variable used by x-cart. You can correct this with the following code change: OPEN https.php: Find the code: $HTTP_SERVER_VARS['REQUEST_URI'] = $REQUEST_URI = $PHP_SELF.($QUERY_STRING ? ("?".$QUERY_STRING) : ""); Replace with: $HTTP_SERVER_VARS['REQUEST_URI'] = $REQUEST_URI = $_SERVER['REQUEST_URI']; OPEN include/sessions.php Find the code: func_header_location($PHP_SELF.(empty($qs) ? "" : ("?".$qs))); Before add: // WCM - CDSEO Modification to remove reliance on $PHP_SELF $PHP_SELF = str_replace('?','',str_replace($_SERVER['QUERY_STRING'],'',$_SERVER['REQUEST_URI'])); // / WCM - CDSEO Modification to remove reliance on $PHP_SELF | |
|
Comments (0)