伪静态规则
程序交流
1 6941

高级授权
积分:1625
Nginx伪静态
location / {
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?s=$1 [QSA,PT,L]
</IfModule>
IIS伪静态
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" ></match>
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" ></add>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" ></add>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" ></add>
</conditions>
<action type="Rewrite" url="index.php/{R:1}" ></action>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
最新会员
- 精选帖子
- 国际导航30多款模板进行免费 2060
- 国际导航采集扩展 4046
- api接口使用教程【v3.1.3】 2147
- 使用本系统搭建违法,触犯,站点公告 2272
- 虚拟主机安装出现数据连接失败解决方案 4647
- 国际网址导航新版标签大全 5694
- 关于2.4之前版本想转3.0新版教程 3189
- 国际网址导航全新V4.1(2021-1-19) 23808
- Guojiz网址导航系统V2.3.7正式版 3149
- 热门帖子
- 更新了 我来了修动过模板的老铁是不是伤脑筋了,那点进来看看 954
- 分享四个采集规则 953
- 注册机好多啊 946
- 分享一个网页看板娘 923
- 请在网站根目录存放favicon.ico 922
- Guojiz国际网址导航防红添加代码 907
- 搭建后运行速度非常的慢 9
- 这个导航系统大家喜欢吗? 874
- 请教|GUOJIZ导航系统后台百度推送接口如何填写? 825