Re: http:// to https:// redirect
From: Karl Levinson [x y] mvp (levinson_k_at_despammed.com)
Date: 10/28/03
- Next message: Karl Levinson [x y] mvp: "Re: Pro's & Con's..."
- Previous message: Dennis: "Issues with coldfusion pages and anonymous access"
- In reply to: Robert Moir: "Re: http:// to https:// redirect"
- Next in thread: Keith W. McCammon: "Re: http:// to https:// redirect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Oct 2003 05:22:34 -0500
"Robert Moir" <bofh@mvps.org> wrote in message
news:#W2IyWNnDHA.2080@TK2MSFTNGP10.phx.gbl...
> stp wrote:
> > Does anyone know how to redirect http:// requests that hit
> > a SSL site automaticlly to https:// ??? I'm not a
> > programmer so please go easy on my... :-)
>
> Haven't tested it, but creating a custom error page for the SSL required
> error code (HTTP 403.4 - Forbidden: SSL required) that contains a
> meta-redirect to your "start" page for the https stuff ought to do it.
Agreed. Additionally, you could put the same script as above into an HTM or
.ASP page in the appropriate place [e.g. at the root of the server, if you
don't want ANY http:// use of that server] such as default.htm and make that
page the default page for that folder using the IIS MMC.
Putting the code into the HTTP 403.4 error code could be tricky if you ever
host more than one web site on that server... unless you added some
additional tricks, by default everyone would be redirected to one of the web
sites on the server, and if you have more than one web site on that server,
it might not be the right one.
You can search www.iisfaq.com or www.google.com for some ways to do
redirects. One method is a META REFRESH statement in an HTML page [so
search google for meta-refresh]. Another way would be to use a
Response.Redirect statement in an .ASP page [though you may not be able to
use .ASP pages for server error messages like HTTP 403.4 as suggested
above]. There are other ways to do refreshes as well.
- Next message: Karl Levinson [x y] mvp: "Re: Pro's & Con's..."
- Previous message: Dennis: "Issues with coldfusion pages and anonymous access"
- In reply to: Robert Moir: "Re: http:// to https:// redirect"
- Next in thread: Keith W. McCammon: "Re: http:// to https:// redirect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|