欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

1、nginx伪动态划定

rewrite ^(.*)/tags.html $1/tags.php;
rewrite ^(.*)/tags/(.*)-1.html $1/tags.php?/$2/$3;

rewrite ^([^\.]*)/tags.html $1/tags.php;
rewrite ^([^\.]*)/tags/(.*)-([0-9]+).html $1/tags.php?/$2/$3;

2、.htaccess文件伪新闻划定规矩

RewriteBase / 
RewriteRule ^tags\.html$ /tags.php$1 
RewriteRule ^tags/(.*)-([0-9]+).html$ /tags.php?/$1/$2

3、IIS下站点.config文件,伪新闻规定:

<rule name="Imported Rule tags 1">
<match url="^(.*/)*tags.html$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/tags.php" />
</rule>

<rule name="Imported Rule tags 2"> <match url="^(.*/)*tags/([^-]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="{R:1}/tags.php\?/{R:2}/{R:3}" appendQueryString="false" /> </rule>

4、httpd.ini 文件伪信息规则

RewriteRule ^(.*)/tags\.html $1/tags\.php 
RewriteRule ^(.*)/tags/(.*)-([0-9]+).html $1/tags\.php\?$2/$3

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c53824.shtml