武汉SEO
时光静好,与君语;细水流年,与君同;繁华落尽,与君老...

ICMS>正文

iCMS通用rewrite伪静态规则

2020-07-14 13:16 gbl

nginx

location / {   index  index.html index.htm index.php;   try_files $uri $uri/ /rewrite.php?$args;}

apache

RewriteEngine onRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . 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.0937.biz/post-3131.html