【问题标题】:system.webServer/rewrite -> UrlRewritingsystem.webServer/rewrite -> UrlRewriting
【发布时间】:2011-05-30 18:11:35
【问题描述】:

我有一个带有这个Web.config的php项目:

<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 上进行配置?怎么做?

【问题讨论】:

    标签: url-rewriting urlrewriter.net


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2014-08-02
      • 2011-07-15
      • 2011-07-07
      • 2015-02-05
      • 1970-01-01
      • 2011-05-19
      • 2019-08-27
      • 1970-01-01
      • 2012-03-06
      相关资源
      最近更新 更多