HTTP - HTTPS in vb.net
If Not Request.IsSecureConnection Then
Dim redirectUrl As String = Request.Url.ToString().Replace("http:", "https:")
Response.Redirect("URL", True)
End If
easy cut and paste code for redirecting http to https
Dim redirectUrl As String = Request.Url.ToString().Replace("http:", "https:")
Response.Redirect("URL", True)
End If
easy cut and paste code for redirecting http to https
Subscribe to:
Post Comments (Atom)
Post a Comment