解决nginx兼容性问题
This commit is contained in:
parent
3ab2808b14
commit
65d678c225
|
|
@ -15,7 +15,7 @@ if (!file_exists($htaPath)) {
|
|||
}
|
||||
|
||||
if (!file_exists(__DIR__ . '/../storage/installed')
|
||||
&& (!isset($_SERVER['REDIRECT_URL']) || substr($_SERVER['REDIRECT_URL'], 0, 10) != '/installer')
|
||||
&& !(isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/installer')
|
||||
&& (stripos($_SERVER['REQUEST_URI'], '_debugbar') !== 1)) {
|
||||
header("Location: /installer");
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue