iCMSv7.0.8 或者 开发版升级到 git:2018-03-30 之后可使用下面的伪静态规则
-
git:2018-03-30 新增
rewrite.php伪静态统一解析程序以下伪静态规则仅供参考
nginx
location / { index index.html index.htm index.php; try_files $uri $uri/ /rewrite.php?$args; }apache
RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . rewrite.php [L]IIS
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="ICMS" stopProcessing="true"> <match url="^(.)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="rewrite.php" /> </rule> </rules> </rewrite> </system.webServer> </configuration>推荐阅读
文章标签:
版权声明: 本文除特别说明外均由 麒麟在线 原创
本文链接: https://www.70ol.com/jishu/365.html,尊重共享,欢迎转载,请自觉添加本文链接,谢谢!
分享本文: 请填写您的分享代码。
呃 本文暂时没人评论 来添加一个吧
发表评论