### 伪静态设置
* Apache 服务器配置
~~~
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
~~~
* Nginx 服务器配置
~~~
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
~~~
* IIS 服务器管理
~~~
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
~~~
在宝塔面板站点管理。设置伪静态
![](https://img.kancloud.cn/96/99/9699cf7ae4f689814cd71c79ab0e6a3c_751x589.png)
如手动安装时已设置伪静态还但是提示未开启伪静态
![avatar](https://www.mzapp.cn/storage/1/images/2021/10/03/84/005ed1ab85536078f6317320d10b49a9d1a722.png)
检查网站是否开启了强制https,先关闭一下,等安装结束再打开