伪静态规则
程序交流
1 6864

高级授权
积分: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多款模板进行免费 2004
- 国际导航采集扩展 3949
- api接口使用教程【v3.1.3】 2090
- 使用本系统搭建违法,触犯,站点公告 2202
- 虚拟主机安装出现数据连接失败解决方案 4577
- 国际网址导航新版标签大全 5531
- 关于2.4之前版本想转3.0新版教程 3143
- 国际网址导航全新V4.0(2020-11-11) 23290
- Guojiz网址导航系统V2.3.7正式版 3099
- 热门帖子
- 国际网址导航如何配置七牛解决方案 959
- 元旦快乐,分享一个本站在用挺好看的流光文字 952
- 更新了 我来了修动过模板的老铁是不是伤脑筋了,那点进来看看 905
- 注册机好多啊 900
- 分享四个采集规则 883
- 分享一个网页看板娘 878
- 请在网站根目录存放favicon.ico 873
- Guojiz国际网址导航防红添加代码 845
- 这个导航系统大家喜欢吗? 830