X-Cart:Redirect Loop Error

From X-Cart 4 Classic
Revision as of 16:43, 1 September 2011 by Vladimir Gurinenko (talk | contribs) (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'…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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"];