Enter your email address:


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



0 comments:

Post a Comment

Blog Widget by LinkWithin

MyLangit Theme By ArpitNext
Copyright © 2008 Bloggerized by : GosuBlogger | Inspired By Langit : Eches