Difference between revisions of "X-Cart:Redirect Loop Error"
(Created page with ' If your server is behind a proxy and generates the error "'''Firefox has detected that the server is redirecting the request for this address in a way that will never complete'…') |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | If your server is behind a proxy and generates the error "'''Firefox has detected that the server is redirecting the request for this address in a way that will never complete'''" or something else related to a ''redirect loop error'', try adding this code to your <u>top.inc.php</u> file: | |
− | |||
− | If your server is behind a proxy and generates the error "'''Firefox has detected that the server is redirecting the request for this address in a way that will never complete'''" or something else related to a redirect loop error, try adding this code to your <u>top.inc.php</u> file: | ||
<source> | <source> | ||
− | if( isset( $_SERVER["HTTP_X_FORWARDED_HOST"])) | + | if( isset( $_SERVER["HTTP_X_FORWARDED_HOST"])) |
+ | $_SERVER["HTTP_HOST"] = $_SERVER["HTTP_X_FORWARDED_HOST"]; | ||
</source> | </source> | ||
[[Category:Troubleshooting]] | [[Category:Troubleshooting]] |
Latest revision as of 16:44, 1 September 2011
If your server is behind a proxy and generates the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete" or something else related to a redirect loop error, try adding this code to your top.inc.php file:
if( isset( $_SERVER["HTTP_X_FORWARDED_HOST"]))
$_SERVER["HTTP_HOST"] = $_SERVER["HTTP_X_FORWARDED_HOST"];