Too many redirectsBrowser Info Environment
Thanks for any help.
Also, if you have a .htaccess file, it would be useful to know whether you have adjusted that in any way...
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"?> <configuration> <system.webServer> <defaultDocument> <files> <remove value="iisstart.htm" /> <remove value="Default.htm" /> <remove value="Default.asp" /> <remove value="default.aspx" /> <add value="index.php" /> </files> </defaultDocument> <rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true">
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...
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.
The current version (2.5) now needs the fix at line 90 of controller.php
Btw: Thanks for this useful free add on!