[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: redirect http to https

Matthew Miller wrote:
On Thu, Oct 28, 2004 at 02:19:21PM +0300, Andrey Andreev wrote:

Obviously you cannot do that fully transparently to the user, as the

Sure you can! See other posts in this thread.

Dang! So I'm wrong. Does anyone care to explain how it works?

client needs to initiate the new TCP connection to the https code. You need to instruct the browser to do so, and the browser understands HTML. Thus:
Put this in the index.html or whatever your server serves
<meta http-equiv="Refresh" content="0;url=http://google.com"; />
fix the 0 to the number of seconds to wait before the redirect fires, and the url to the url you want.

Oh, please don't do this. It's really annoying for visitors, because it
breaks the "back" button.

good point...

-- Andrey Andreev University of Helsinki Dept. of Computer Science

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]