简体   繁体   中英

IIS url rewrite rule not working with MVC controller actions

How to make IIS reverse proxy / url rewrite rules work with ASP.NET MVC actions? The rule (no matter how generic / specific) doesn't trigger if the pattern url is pointing to an MVC action.

As mentioned here ,

The solution is to ignore the URL explicitely in the ASP.NET MVC project like this:

routes.Ignore("MyRelativeURL/{*pathInfo}");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM