1

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 ..

2

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.