Forum Moderators: mack

Message Too Old, No Replies

redirect http to https

         

paolo623

5:41 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



can anybody help me to redirect [mysite...] to [mysite?...] I am using html pages and iis 6.0.
Thank you

larryhatch

5:46 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please forgive my ignorance on this matter.

Why would you want to redirect from a simple http site to an
https site? Isn't http bad enough at it is? - LH

larryhatch

5:49 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let me declarify that.

I meant to ask: "isn't http complicated enough without adding an 's'
or other letters to it all?

paolo623

5:51 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



ssl encryption secures your web site with a private key

Corey Bryant

6:06 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In IIS 6.0 you can just do a redirect to port 443 and stop port 80 for that IP address.

-Corey

paolo623

6:13 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



i'd like users to avoid the 403;4 error. I'm trying to redirect without users intervention.

txbakers

6:25 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<% if (String(Request.ServerVariables("HTTPS")) == "off") Response.Redirect("https://www.yoursite.com"); %>

paolo623

6:29 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



tx, would you put that as a default page with an html extension? I'm not really good at scripting (-:

txbakers

6:44 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the default page would be an ASP page, that was ASP code in javascript.

It checks to see if the server protocol was HTTP and if so, redirects the user automatically to HTTPS

My default page is "default.asp"

paolo623

6:49 pm on Mar 19, 2005 (gmt 0)

10+ Year Member



I'll try that first thing monday. Thanks for your help!

paolo623

1:06 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



No luck with that either. I et an endless loop. Any other idea?
Thanks

mack

7:22 pm on Mar 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month




I meant to ask: "isn't http complicated enough without adding an 's'
or other letters to it all?

It's isn't simple a case of having a https url. An https request to a web server will trigger the server to handle it as a secure request.

Mack.