Too many redirects

Permalink Browser Info Environment
I have installed the plugin, but now none of my pages load and I get an error page "The webpage at **** has resulted in too many redirects." This shows up for all pages, dashboard and site pages.

Thanks for any help.

Type: Discussion
Status: New
View Replies:
jbx replied on at Permalink Reply
Can you send me a link to your site to look at please?
Also, if you have a .htaccess file, it would be useful to know whether you have adjusted that in any way...


joemc replied on at Permalink Reply
The site is still in development mode, and I currently have the plugin un-installed because other people are working on it simultaneously.

But, we are using a 'web.config' file to enable pretty-urls... which, I'm sure is where the issue is arising from ( a combination of this and your script ).

<?xml version="1.0" encoding="UTF-8"?>
                <remove value="iisstart.htm" />
                <remove value="Default.htm" />
                <remove value="Default.asp" />
                <remove value="default.aspx" />
                <add value="index.php" />
                <rule name="Imported Rule 1" stopProcessing="true">
jbx replied on at Permalink Reply
Hmmm, never come across that kind of setup before. Is that part of IIS or something?
It's tricky to debug without actually being able to see what's going on. Could you look in the net panel in Firebug? That might tell you which redirects it's trying to perform...

jbx replied on at Permalink Reply
I hope you got this sorted, but for the benefit of others, I have found that if BASE_URL is not defined in your site.php file, then it will cause the too many redirects issue...

jcavinder replied on at Permalink Reply

I had this exact problem on IIS. The problem is that ISAPI with IIS sets $_SERVER['HTTPS'] to "off" rather that leave it empty. This causes infinite redirect loops since your conditional statements in jbx_force_ssl.php only check true/false.

To fix, rather than complicate the checks in jbx_force_ssl.php, I simply changed line 74 in your controller.php.


array(($_SERVER['HTTPS']=="off") ? NULL : $_SERVER['HTTPS'])

I hope you include this or a similar fix in future versions, and good work on this immensely useful little addon.

Schlimmer replied on at Permalink Reply
The issue with IIS still exists. It's not only related to ISAPI but also occurs with FastCGI.

The current version (2.5) now needs the fix at line 90 of controller.php

Btw: Thanks for this useful free add on!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.