SDCMS门户版伪静态代码如下
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="list_list_page">
<match url="^([\w\d\/]*)/index_(\d+)/.html$" ignoreCase="false"/>
<action type="Rewrite" url="list.asp?root={R:1}&page={R:2}" />
</rule>
<rule name="list_list">
<match url="^([\w\d\/-]*)/(\d+)/$" ignoreCase="false"/>
<action type="Rewrite" url="list.asp?root={R:1}&page={R:2}" />
</rule>
<rule name="list">
<match url="^(?!admin|user|html|plug|theme|lib|upfile)([\w\d\/-]*)/$" ignoreCase="false"/>
<action type="Rewrite" url="list.asp?root={R:1}" />
</rule>
<rule name="content">
<match url="^([\w\d\/-]*)/(?!index_)([\w\d-]*)_(\d+)\.html" ignoreCase="false"/>
<action type="Rewrite" url="show.asp?root={R:2}&page={R:3}" />
</rule>
<rule name="content_list">
<match url="^(?!lib)([\w\d\/-]*)/(?!sd_|index_)([\w\d-]*).html" ignoreCase="false"/>
<action type="Rewrite" url="show.asp?root={R:2}" />
</rule>
<rule name="home">
<match url="^index\.html(.*)" />
<action type="Rewrite" url="/index.asp" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
只需要将上面的代码保存成web.config上传到网站根目录就可以了。