Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Http to HTTPS

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS to SQL Attacks  
Author Message
anonymous295

External


Since: Nov 01, 2003
Posts: 38



(Msg. 1) Posted: Mon Jan 05, 2004 7:58 pm
Post subject: Http to HTTPS
Archived from groups: microsoft>public>inetserver>iis (more info?)

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 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 2) Posted: Tue Jan 06, 2004 3:33 pm
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.TakeThisOut@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 
Back to top
Login to vote
anonymous295

External


Since: Nov 01, 2003
Posts: 38



(Msg. 3) Posted: Tue Jan 06, 2004 3:33 pm
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 <a style='text-decoration: underline;' href="HTTP://" target="_blank">HTTP://</a> and
<a style='text-decoration: underline;' href="HTTPS://" target="_blank">HTTPS://</a> 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.RemoveThis@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
<font color=purple> >: <a style='text-decoration: underline;' href="http://Lodestarpublications.net</font" target="_blank">http://Lodestarpublications.net</font</a>>
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Http to HTTPS 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 4) Posted: Tue Jan 06, 2004 7:29 pm
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.RemoveThis@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.RemoveThis@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 
Back to top
Login to vote
anonymous77

External


Since: Oct 14, 2003
Posts: 468



(Msg. 5) Posted: Tue Jan 06, 2004 7:29 pm
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok Ken this was very helpful thank you.

Here is what was happening.
I was using the 403 redirect error and it did a fine job.
but if the client clicked from that page to another the
whole site would be viewed in HTTPS it would never go back
to http (causing errors on certain pages). So I was asking
how to make this one page or any one page I chose to be
able to switch from HTTP to HTTPS and then back to HTTP
after the HTTPS page had been viewed. No matter which link
they clicked on. It seems to me that I need to use the
refresh option here. Because of the redirect is on the
page itself. no matter where I come from to access the
page it will redirect me to the protocol i am looking for.
Thanks
Joseph
 >-----Original Message-----
 >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)
 >click here
 >
 >(to go to a non-secure page)
 >click here
 >
 >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 <a style='text-decoration: underline;' href="HTTP://" target="_blank">HTTP://</a> and
 >: <a style='text-decoration: underline;' href="HTTPS://" target="_blank">HTTPS://</a> 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
<font color=purple> >: >: <a style='text-decoration: underline;' href="http://Lodestarpublications.net</font" target="_blank">http://Lodestarpublications.net</font</a>>
 >: >
 >: >
 >: >.
 >: >
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Http to HTTPS 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 6) Posted: Wed Jan 07, 2004 2:59 am
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On the HTTPS secured page, just make all the links to other pages full URLs
including the procotol, eg:

<a href="http://yourSite.com/anyOtherPage.asp">click here to leave the
secure page</a>

Cheers
Ken


<anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:019201c3d425$ed21f550$a001280a@phx.gbl...
: Ok Ken this was very helpful thank you.
:
: Here is what was happening.
: I was using the 403 redirect error and it did a fine job.
: but if the client clicked from that page to another the
: whole site would be viewed in HTTPS it would never go back
: to http (causing errors on certain pages). So I was asking
: how to make this one page or any one page I chose to be
: able to switch from HTTP to HTTPS and then back to HTTP
: after the HTTPS page had been viewed. No matter which link
: they clicked on. It seems to me that I need to use the
: refresh option here. Because of the redirect is on the
: page itself. no matter where I come from to access the
: page it will redirect me to the protocol i am looking for.
: Thanks
: Joseph
: >-----Original Message-----
: >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.RemoveThis@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.RemoveThis@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 
Back to top
Login to vote
anonymous295

External


Since: Nov 01, 2003
Posts: 38



(Msg. 7) Posted: Wed Jan 07, 2004 2:59 am
Post subject: Re: Http to HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ken,
I use frontpage and you cannot do this with the navigation
structure it is already set. Also this code below; where
do you paste it? I understand to make the URL my page
name. If you are suggesting to add this to a navigation
link in the navigation structure it (asI know) cannot be
done unless I remove the navigation buttons on this page
and add my own to the HTTP home page or a way to get back
to HTTP
Thanks
Joseph
 >-----Original Message-----
 >On the HTTPS secured page, just make all the links to
other pages full URLs
 >including the procotol, eg:
 >
 ><a href="http://yourSite.com/anyOtherPage.asp">click here
to leave the
 >secure page</a>
 >
 >Cheers
 >Ken
 >
 >
 ><anonymous.RemoveThis@discussions.microsoft.com> wrote in message
 >news:019201c3d425$ed21f550$a001280a@phx.gbl...
 >: Ok Ken this was very helpful thank you.
 >:
 >: Here is what was happening.
 >: I was using the 403 redirect error and it did a fine
job.
 >: but if the client clicked from that page to another the
 >: whole site would be viewed in HTTPS it would never go
back
 >: to http (causing errors on certain pages). So I was
asking
 >: how to make this one page or any one page I chose to be
 >: able to switch from HTTP to HTTPS and then back to HTTP
 >: after the HTTPS page had been viewed. No matter which
link
 >: they clicked on. It seems to me that I need to use the
 >: refresh option here. Because of the redirect is on the
 >: page itself. no matter where I come from to access the
 >: page it will redirect me to the protocol i am looking
for.
 >: Thanks
 >: Joseph
 >: >-----Original Message-----
 >: >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.RemoveThis@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 <a style='text-decoration: underline;' href="HTTP://" target="_blank">HTTP://</a> and
 >: >: <a style='text-decoration: underline;' href="HTTPS://" target="_blank">HTTPS://</a> 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.RemoveThis@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
<font color=purple> >: >: >: <a style='text-decoration: underline;' href="http://Lodestarpublications.net</font" target="_blank">http://Lodestarpublications.net</font</a>>
 >: >: >
 >: >: >
 >: >: >.
 >: >: >
 >: >
 >: >
 >: >.
 >: >
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Http to HTTPS 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
OWA redirect from http to https - Does anyone know why this doesn't work correctly? I installed my certificate and can access OWA if I use https://mydomain.com/exchange. The below Queue article will force an automatic redirect of http://mydomain.com/exchange to ..

Redirect HTTP to HTTPS - Is there a way to redirect http to https on the same server without using an .htm file that contains redirect info? What I'm looking for is http://abc.com to redirect to something like https://abc.com/exchange. Thanks. IIS5/W2K

HTTPS IIS6 just cant work, HTTP is fine - Hello, I have been trying to configure iis6 for HTTPS access, have done the port 443, install Certificate using Cert Services, basically all the same config as my another iis5 box (which is working fine with HTTPS). Any idea? And... sometimes the IIS6....

HTTPS PUT - Is there a setting in IIS to allow remote file manipulation for copying files to a https server using MSXML. ?? getting error (HTTPS PUT: "12019: Unknown".) TIA -rulet

HTTPS redirector - We've set up a server with an SSL security certificate that covers the entire server. The url we're using used to belong to another department, and they want us to redirect their traffic. I've set up the index page with a redirect in the header. Problem...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]