dede系统在iis服务器环境部署下301跳转与伪静态并存方法如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="b1y 301 Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^7h5.cn$" />
</conditions>
<action type="Redirect" url="http://www.7h5.cn/{R:0}"
redirectType="Permanent" />
</rule>
<rule name="首页">
<match url="^index.html$" ignoreCase="false" />
<action type="Rewrite" url="index.php" appendQueryString="false" />
</rule>
<rule name="列表">
<match url="^plus/list-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/list.php?tid={R:1}" appendQueryString="false" />
</rule>
<rule name="列表分页">
<match url="^plus/list-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/list.php?tid={R:1}&totalresult={R:2}&PageNo={R:3}" appendQueryString="false" />
</rule>
<rule name="文章分页">
<match url="^plus/view-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/view.php?aid={R:1}&pageno={R:2}" appendQueryString="false" />
</rule>
<rule name="tag首页">
<match url="^tags.html$" ignoreCase="false" />
<action type="Rewrite" url="tags.php" appendQueryString="false" />
</rule>
<rule name="tag列表">
<match url="^tags/(.*)(?:(?.*))*$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}" appendQueryString="false" />
</rule>
<rule name="tag列表最后有左斜杠">
<match url="^tags/(.*)/(?:(?.*))*$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/" appendQueryString="false" />
</rule>
<rule name="tag列表分页">
<match url="^tags/(.*)/([0-9])(?:(?.*))*$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/{R:2}" appendQueryString="false" />
</rule>
<rule name="tag列表分页最后有左斜杠">
<match url="^tags/(.*)/([0-9])/(?:(?.*))*$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/{R:2}/" appendQueryString="false" />
</rule>
<rule name="搜索页分页">
<match url="^search/(.*)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/search.php?q={R:1}&PageNo={R:2}&pagesize=2&searchtype=title" appendQueryString="false" />
</rule>
<rule name="搜索页">
<match url="^search/(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/search.php?q={R:1}&pagesize=2&searchtype=title" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>