Index: application.php =================================================================== --- application.php (revision 12950) +++ application.php (working copy) @@ -351,10 +351,7 @@ $this->Debugger->appendTimestamp('After UnitConfigReader'); } - $rewrite_on = $this->ConfigValue('UseModRewrite'); - // admin=1 - when front is browsed using admin session - $admin_on = getArrayValue($_REQUEST, 'admin') || $this->isAdmin; - define('MOD_REWRITE', $rewrite_on && !$admin_on ? 1 : 0); + define('MOD_REWRITE', $this->ConfigValue('UseModRewrite') && !$this->isAdmin ? 1 : 0); $this->HttpQuery =& $this->recallObject('HTTPQuery');