is7.5下常见程序通过web.config实现伪静态新建一个以web.config命名的文件内容为
<rewrite>
<rules>
<rule name="demotest">
<match url="^test.html$" />
<action type="rewrite" url="{r:1}/testok.html" />
</rule>
<rule name="已导入的规则 4" stopprocessing="true">
<match url="^nwtp/searchp/(.*)_(d+).html$" ignorecase="false" />
<action type="rewrite" url="/index.php?m=pro&a=searchp&k={r:1}&p={r:2}" appendquerystring="false" />
</rule>
<rule name="已导入的规则 5" stopprocessing="true">
<match url="^nwtp/searchp/(.*).html$" ignorecase="false" />
<action type="rewrite" url="/index.php?m=pro&a=searchp&k={r:1}" appendquerystring="false" />
</rule>
<rule name="已导入的规则 32" stopprocessing="true">
<match url="^nwtm/(.*).html$" ignorecase="false" />
<action type="rewrite" url="/index.php?m=message&a=index&wjm={r:1}" appendquerystring="false" />
</rule>
<rule name="已导入的规则 34" stopprocessing="true">
<match url="^nwtsite.html$" ignorecase="false" />
<action type="rewrite" url="/index.php?m=index&a=diqu" appendquerystring="false" />
</rule>
</rules>
</rewrite>
记得后台的伪静态要开启喔
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!