ASP.NET MVC eurl.axd errors

后端 未结 3 384
眼角桃花
眼角桃花 2020-12-23 14:38

Using the following steps:

(I have checked this similar post, which does not solve my problem.)

  1. Under Windows Server 2003/IIS6, I create a new site cal
3条回答
  •  别那么骄傲
    2020-12-23 14:53

    I use the following regex as first rule with Ionics Isapi Rewriter for web sites running on ASP.NET 4 on IIS 6 to remedy the problems caused by the breaking change introduced with ASP.NET 4 :

    RewriteRule ^(.*)/eurl.axd/[a-f0-9]{32}(.*)$ $1$2
    

    This let me again use extensionless urls.

    Note that the second group captures the querystring if present and restitutes it to the rewritten url.

    And yes, it's a feature, not a bug.

提交回复
热议问题