开发者

system.webServer/rewrite -> UrlRewriting

开发者 https://www.devze.com 2023-03-09 19:41 出处:网络
I have a php project with this Web.config: <configuration> <system.webServer> <rewrite>

I have a php project with this 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> 

But need to install it on IIS6. Wondering if its possible to configure on UrlRewriting.NET? And how?


One of the limitations of UrlRewriting.NET is that only pages and resources handled by the ASP.NET pipeline can be rewritten, which of course PHP can't be.

You would need a third party tool such as Iconics IRF or HeliconTech's ISAPI_Rewrite3 to be able to satisfy your rewrite requirements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号