Index: trunk/core/kernel/application.php =================================================================== diff -u -r3359 -r3360 --- trunk/core/kernel/application.php (.../application.php) (revision 3359) +++ trunk/core/kernel/application.php (.../application.php) (revision 3360) @@ -1319,7 +1319,10 @@ */ function RewriteURLs($ssl = false) { - $allow_rewriting = !$this->ConfigValue('UseModRewriteWithSSL') && ($ssl || (PROTOCOL == 'https://')) ? false : true; + $allow_rewriting = + (PROTOCOL == 'http://') // always allow mod_rewrite for http + || // or allow rewriting for redirect TO httpS or when already in httpS + (($ssl || PROTOCOL == 'https://') && $this->ConfigValue('UseModRewriteWithSSL')); // but only if it's allowed in config! return constOn('MOD_REWRITE') && $allow_rewriting; }