配置url重写,iis多少算高版本啊

浏览:836 发布日期:2015/11/14 分类:求助交流 关键字: iis,url重写
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容: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呢,
最佳答案
评论( 相关
后面还有条评论,点击查看>>