I have implemented https on my application and now i\'m trying to make IIS redirect all http request to https, so that the user doesn\'t even notice this change.
I h
you can make a simple check on the global.asax, on beginRequest, something like this code:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpApplication app = (HttpApplication)sender;
if(!app.Response.Request.IsSecureConnection)
{
app.Response.Redirect(Request.RawUrl.Replace("http://","https://"), true);
return;
}
}
ps. I did not have check this code, I just type it now.