源文字简介:
站长亲测环境
IIS+PHP7.2+MySQL5.6
安装方法
上传压缩包内的 www 文件至主机根目录,访问绑定的站点域名后自动跳转到安装界面
伪静态配置
Apache伪静态
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>
Nginx伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
IIS伪静态
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<rules>
<rule name=\"伪静态规则\" stopProcessing=\"true\">
<match url=\"^(.*)$\" ignoreCase=\"false\" />
<conditions logicalGrouping=\"MatchAll\">
<add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" ignoreCase=\"false\" negate=\"true\" />
<add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" ignoreCase=\"false\" negate=\"true\" />
</conditions>
<action type=\"Rewrite\" url=\"index.php?s=/{R:1}\" appendQueryString=\"true\" />
</rule>
</rules>
截图演示
资源均来自第三方,谨慎下载,前往第三方网站下载