I need to redirect my HTTP site to HTTPS, have added below rule but I am getting 403 Error when tried using http://www.example.com, it works fine when I type https://www.exa
I use the following in Global.asax:
protected void Application_BeginRequest() { if (FormsAuthentication.RequireSSL && !Request.IsSecureConnection) { Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://")); } }