在景安虚拟主机下测试通过
* [ ] 移动`public`目录下所有文件到根目录
![](https://img.kancloud.cn/25/5e/255e85da34a7db45628777598d2770ca_568x350.png)
* [ ] 修改`index.php`内容
~~~
<?php
namespace think;
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
// 加载框架基础引导文件
require __DIR__ . '/thinkphp/base.php';
// 添加额外的代码
// ...
// 执行应用并响应
Container::get('app', [APP_PATH])->run()->send();
~~~
* [ ] 修改伪静态,`.htaccess`文件
~~~
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
~~~
* [ ] 其他步骤参考正常安装