mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX: Fixed mod_rewrite-less operation in the root folder of a windows box (from r72995) (from r92243)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@92281 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
30ddfa5fff
commit
375340e94c
@ -32,7 +32,9 @@ if($ruLen > $snLen && substr($_SERVER['REQUEST_URI'],0,$snLen+1) == ($_SERVER['S
|
|||||||
* Very quickly pass through references to files
|
* Very quickly pass through references to files
|
||||||
*/
|
*/
|
||||||
if(file_exists($fileName)) {
|
if(file_exists($fileName)) {
|
||||||
$fileURL = dirname($_SERVER['SCRIPT_NAME']) . '/' . $url;
|
$baseURL = dirname($_SERVER['SCRIPT_NAME']);
|
||||||
|
if($baseURL == "\\" || $baseURL == "/") $baseURL = "";
|
||||||
|
$fileURL = "$baseURL/$url";
|
||||||
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
|
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
|
||||||
header("Location: $fileURL");
|
header("Location: $fileURL");
|
||||||
die();
|
die();
|
||||||
|
Loading…
Reference in New Issue
Block a user