mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX: Get index.php filename rewriting working for windows
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.3@72504 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
63a16ecabe
commit
6f889ef939
@ -39,8 +39,12 @@ if($ruLen > $snLen && substr($_SERVER['REQUEST_URI'],0,$snLen+1) == ($_SERVER['S
|
||||
}
|
||||
}
|
||||
|
||||
// For linux
|
||||
$_SERVER['SCRIPT_FILENAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_FILENAME']);
|
||||
$_SERVER['SCRIPT_NAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_NAME']);
|
||||
// And for windows
|
||||
$_SERVER['SCRIPT_FILENAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_FILENAME']);
|
||||
$_SERVER['SCRIPT_NAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_NAME']);
|
||||
|
||||
chdir('sapphire');
|
||||
require_once('sapphire/main.php');
|
||||
|
Loading…
Reference in New Issue
Block a user