Re: http:// to https:// redirect

From: Karl Levinson [x y] mvp (levinson_k_at_despammed.com)
Date: 10/28/03


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.



Relevant Pages

  • Re: SQL beginner help
    ... statements to the server)? ... request from the "jblow123" web site login. ... with the Asp code it will decide what how to handle what the user is ... But I still need some client side execution;/ I think I got a good ...
    (microsoft.public.sqlserver)
  • How to fight censors in Thailand (Technical data)
    ... forward to say that the YouTube block was not unique - that strange ... Their web site was suddenly responding slowly and some users ... In other words, the "server" that http://www.youtube.com ... that the same HTTP 301 redirect was happening, ...
    (soc.culture.thai)
  • Re: 301 not possible
    ... I had a web site since 1995 on a server with a domain name I don't own. ... My big frustration is that I cannot put a 301 redirect on the home page on the old site, as there are still many very ancient links to the old URL. ... I don't know about how default pages work on a Linux site, but in ASP a web site by default has several default page names associated with it, prioritized so that when a request is received for the parent, a file with the highest priority name is looked for first, then one with the second, and so forth. ... Does your server have this, and is there a higher-priority name than index.html, a name that corresponds to a dynamic page? ...
    (alt.internet.search-engines)
  • Re: Frontpage-Desktop-Engine-SQL
    ... Offfice 2003 comes with a Light Version of SQL ... > asp pages querying off of local SQL Databases on The Server PC and then ... >> just couldn't find any mention of it on the MS Office web site. ...
    (microsoft.public.frontpage.programming)
  • Re: Need to pass information into a web page.
    ... The Request object requires two trips to the server and can and will ... since ASP 3.0 and most especially with ASP.NET ... >>> so in the login file what do I pass into the redirect statement as I ...
    (microsoft.public.dotnet.framework.aspnet)