remove 'WWW' in ASP.NET MVC 1.0

前端 未结 4 1291
被撕碎了的回忆
被撕碎了的回忆 2021-02-11 04:14

I am attempting to force the domain name to not use the \'www\'. I want to redirect the user if attempted. I have seen very little on an MVC solution. Is there anyway to harness

4条回答
  •  深忆病人
    2021-02-11 04:43

    This is more generic configuration as you can write it once in the URL Rewrite of the root IIS (not specific to a certain application pool) and it will automatically be applied to ALL your IIS websites without any dependency on your domain name.

    IIS Remove WWW

提交回复
热议问题