Fastadmin伪静态规则
亲测可用的Fastadmin伪静态规则,做一个记录,防止下次部署伪静态又报错了,如果有需要的复制即可用.
Nginx伪静态规则
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
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>
本文来自博客园,作者:wekyun,转载请注明原文链接:https://www.cnblogs.com/wekyun/p/15818780.html