Forum Moderators: phranque

Message Too Old, No Replies

https redirect

         

paolo623

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

10+ Year Member



Can anybody help me redirect from [mysite...] to [mysite?...] I'm using iis 6.0 and html pages. I've tried placing a response redirect asp page as default document but that didn't seem to work.
Thanks

cmatcme

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

10+ Year Member



HTTP Redirect works.

<html> <head>

<META HTTP-EQUIV='Refresh' CONTENT='0;URL=https://secure.example.com'>

</head> </html>

Back to basics!

txbakers

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

WebmasterWorld Senior Member 10+ Year Member



nice idea, but that will cause an endless loop.

It never stops redirecting.

john_k

8:04 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




If (UCase(Request.ServerVariables("HTTPS")) <> "ON") Then
Response.Redirect("https://mysite.com")
End If

john_k

8:09 pm on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the requests are going directly to the html pages (and not to the asp pages or default page) then of course the asp code never has a chance to execute.

In that case, you need to use the meta-refresh as posted by cmatcme. Just be sure that the location for the refresh is pointing to a different file name.

engine

9:22 am on Mar 20, 2005 (gmt 0)