如下伪静态规则适用于Discuz!Q版本论坛程序
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="root_location_rewrite" stopProcessing="true">
<match ignoreCase="false" url="." />
<conditions logicalGrouping="MatchAll">
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}" />
</rule>
<rule name="default_file_rewrite" stopProcessing="true">
<match ignoreCase="false" url="^$" />
<action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
文章评论 本文章有个评论