문제

I just need to create a rule in IIS (7.5) to redirect all my traffic for http to https. There are two potential ways of doing it. First is by installing and configuring URL rewrite module. Other one is by endabling httpRedirect. I am not sure what are the difference in these two and if any one is better than other?

도움이 되었습니까?

해결책

Not sure which approach is better, but I always use the RequireHttpsAttribute on an ActionResult so I have the control in my MVC application. When I'm moving the application to another server I don't have to (re)configure IIS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top