diff --git a/public/index.php b/public/index.php index 378ddfb..c01b3d3 100644 --- a/public/index.php +++ b/public/index.php @@ -12,6 +12,8 @@ // [ 应用入口文件 ] namespace think; +use think\facade\Request; + require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 @@ -23,5 +25,5 @@ $response->send(); $http->end($response); if(file_exists('../install.lock') != 'true'){ - header('Location: http://www.tp6.com/install.php'); + header('Location:'.Request::domain().'/install.php'); } \ No newline at end of file