I have MVC3 application with SSL. I want particular page URL should always add Https. Can someone tell me how to do this. Below is the Route in Global file.
routes.MapRoute("root22",
"paybill",
new { controller = "Home", action = "PayBill" });
One more thing if my URL has https in front than should all the paths in the page also use https or not necessary?
You don’t need to mess with the routing to accomplish this. Just use the
[RequireHttps]attribute on your controller/actions.If it can, it will redirect to https. Your outgoing links don’t have to use https, but when loading javascript, css, images, etc. then it should otherwise the user may get a mixed content security warning.