I have a webserver running IIS 6, .NET MVC with a single domainname. The site uses URL rewriting to produce URLs like:
domain.com/controller/action
I would like to force one (1) controller to use SSL (others should work without SSL). How should I implement this?
Decorate the controller that needs SSL with the RequireHttpsAttribute.
Although, you may prefer a custom version that ignores this for requests from localhost if you are using Cassini for debugging.