Index: typo3/init.php =================================================================== --- typo3/init.php (revision 6776) +++ typo3/init.php (working copy) @@ -86,6 +86,12 @@ define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (PHP_SAPI=='cgi'||PHP_SAPI=='isapi' ||PHP_SAPI=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME'])))); define('TYPO3_mainDir', 'typo3/'); // This is the directory of the backend administration for the sites of this TYPO3 installation. +// ******************************* +// Fix BACK_PATH if necessary +// ******************************* +if (isset($BACK_PATH) && TYPO3_mainDir != 'typo3/' && substr($BACK_PATH, -7) == '/typo3/') { + $BACK_PATH = substr($BACK_PATH, 0, -6) . TYPO3_mainDir; +} // ******************************* // Checking path