I am in asp.net web forms paradigm (api implemented with APIController from MVC). I have added following bindings in IISExpress
http://sarfraz-pc:80
https://sarfraz-pc:443
using this great article. I can access the entire site either using http or https. Now, I want to force some pages to run on http while other on https. Google gave me lots of results including a very old solution from code project and the other one called Security Switch.
But I am seriously considering using IIS 7.0's url rewrite module to implement this. Has anybody used URL rewriting for this purpose? I don't know url rewriting in detail so I want to ask is there a drawback in taking this route? If yes, please suggest some alternative approach (including ones I mentioned) but it should not be simply writing the Response.Redirect code here and there in the application.