RewriteRule (.*)$ /index\.php\?s=$1 [I]在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点: <rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>官方说了两个方法配置iis下面的url重写,第二个是说在iis高版本可以直接配置web.config,那么iis版本多少时算高版本呢,对于第一个方法怎么判断服务器环境支持ISAPI_Rewrite呢, 最佳答案