1

我有一个 php 项目Web.config

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Main Rule" stopProcessing="true">
          <match url=".*" />
            <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration> 

但是需要在IIS6上安装。想知道是否可以在UrlRewriting.NET上进行配置?如何?

4

1 回答 1

0

UrlRewriting.NET 的限制之一是只能重写由 ASP.NET 管道处理的页面和资源,而 PHP 当然不能。

您需要第三方工具,例如Iconics IRFHeliconTech 的 ISAPI_Rewrite3才能满足您的重写要求。

于 2011-05-31T13:50:09.923 回答