Reputation: 854
I can force a controller / action in ASP .NET MVC to use HTTPS.
How can I do other way around? i.e., I do not want my public web-pages to be accessible via HTTPS. Reason being: they are use external scripts and images, it gives not-so-good cross across https signs.
Do I need to use custom attrib?
F1 F1 ..
Upvotes: 1
Views: 571
Reputation: 46008
I'm using UrlRouting module in IIS7 to force SSL / no SSL traffic. I prefer IIS configuration as any changes do not impact the application source code.
Upvotes: 1