我自己写的,运行正常,6Kbbs论坛iis7的web.config伪静态的配置:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to view.php">
<match url="^view-([0-9]+).html$" ignoreCase="false"/>
<action type="Rewrite" url="view.php?tid={R:1}" appendQueryString="false"/>
</rule>
<rule name="view">
<match url="^view-([0-9]+)-([0-9]+)\.html$" ignoreCase="false"/>
<action type="Rewrite" url="view.php?tid={R:1}&page={R:2}" appendQueryString="false"/>
</rule>
<rule name="Rewrite to forum.php">
<match url="^forum-([0-9]+).html$" ignoreCase="false"/>
<action type="Rewrite" url="forum.php?fid={R:1}" appendQueryString="false"/>
</rule>
<rule name="forum">
<match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false"/>
<action type="Rewrite" url="forum.php?fid={R:1}&page={R:2}" appendQueryString="false"/>
</rule>
<rule name="Rewrite to user.php">
<match url="^user-([0-9]+).html$" ignoreCase="false"/>
<action type="Rewrite" url="user.php?uid={R:1}" appendQueryString="false"/>
</rule>
<rule name="user">
<match url="^user-([0-9]+)-([0-9]+)\.html$" ignoreCase="false"/>
<action type="Rewrite" url="user.php?uid={R:1}&page={R:2}" appendQueryString="false"/>
</rule>
<rule name="Rewrite to index.php">
<match url="^index.html$" ignoreCase="false"/>
<action type="Rewrite" url="index.php" appendQueryString="false"/>
</rule>
</rules>
</rewrite>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
</system.webServer>
</configuration>