I don't know what you want to do exactly.
If users are following your links, then just code the links with the
appropriate protocol in mind, eg:
(to go to a secure page)
<a href="https://yoursite.com/somepage.htm">click here</a>
(to go to a non-secure page)
<a href="http://yoursite.com/somepage.htm">click here</a>
If the user has just typed in the URL, and they have used the wrong
procotol, then you need to redirect them somehow.
a) you can use a custom error page
b) you can use server-side code (eg ASP's Response.Redirect) which issues a
HTTP 302 Object Moved header to the client telling the client to issue a new
request
c) you can use client-side javascript to do a redirect
d) you can use a client-side <meta
http-equiv="refresh;URL=https://yousite.com/somepage.htm"> type link. Use
google.com to find out how to use this tag
So, somehow you are going to have to do a redirect if the user has come
directly to this page using the wrong protocol (eg using HTTP when you want
HTTPS).
Cheers
Ken
"Joseph" <anonymous DeleteThis @discussions.microsoft.com> wrote in message
news:05f801c3d3f7$a82ed450$a301280a@phx.gbl...
: So this would mean that I would need to put a link on the
: page to tell the client to go back to previous page from
: https? I have seen pages on sites jump from https to http
: without this. But I dont know how to do it.
: The "refresh" in your meta does this have anything after
: it to indicate the page to refresh to https. Never used
: the code before.
: Thanks
: Joseph
: >-----Original Message-----
: >You can use client-side javascript, or a <meta http-
: equiv="refresh"> tag
: >
: >You can't do it transparently, because HTTP:// and
: HTTPS:// are different
: >protocols. Once the user has made a request using HTTP,
: they need to be told
: >to issue a new request using the HTTPS protocol instead.
: >
: >Cheers
: >Ken
: >
: >
: >"Joseph" <anonymous DeleteThis @discussions.microsoft.com> wrote in
: message
: >news:063901c3d3f0$22c2a820$a101280a@phx.gbl...
: >: Hello,
: >: I wanted to know if anyone has a way to switch from http
: >: to https on specific pages without redirect of the 403.4
: (I
: >: have been doing this a while now) maybe with some code
: >: that will increase my load time instead of "bouncing" it
: >: of of another page.I also need it to go back to http
: when
: >: leaving the https page.
: >:
: >: Thanks
: >: Joseph
: >: http://Lodestarpublications.net
: >
: >
: >.
: > >> Stay informed about: Http to HTTPS