使用IIS6和Php重写URL

时间:2012-04-13 14:39:40

标签: php url-rewriting web-config iis-6

我在两台服务器上有两个非常相似的网站:1个使用IIS6,另一个使用IIS7

两者都在Php。

对于IIS7的用户,我使用了带有该语法的web.config:

<configuration>
<system.webServer>  
    <rewrite>
        <rules>
           <rule name="Rule1">
               <match url="^Test?$"></match>
               <action type="Rewrite" url="/test.php"></action>
           </rule>
       </rules>
    </rewrite>
</system.webServer>
</configuration>

工作正常。但是我无法用IIS6做到这一点

约束:

  • II6无法升级

  • 我不想保留web.config方法(使用Xml):Ionics Isapi使用Htaccess

还有其他方法吗?

谢谢!

0 个答案:

没有答案