# Discuz! Q IIS配置
# 安装URL Rewrite扩展
点击下载URL Rewrite扩展,并安装
# 设置URL Rewrite规则
在URL Rewrite中,添加以下规则
<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>