IIS Rewrite not working (but redirection does)

前端 未结 4 444
孤城傲影
孤城傲影 2021-01-03 19:50

I was trying to play with URL re-writing using the Rewrite Module 2.0 but I had no luck getting it to work. What I\'m trying to do is re-write all calls to web app

4条回答
  •  鱼传尺愫
    2021-01-03 20:43

    Do make sure MVC routing doesn't steal your request. To prevent that from happening, ignore the route you're trying to rewrite:

    RouteTable.Routes.Ignore("blog/{*pathInfo}");
    

    Inspired by: https://sitecore.stackexchange.com/questions/3645/how-to-setup-a-reverse-proxy-with-sitecore

提交回复
热议问题