Re: redirect http to https

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

 



Götz Reinicke wrote:
is there a simple way, to redirect all http requests to a special webserver to https? At the moment users have to type https://..., but I'd like to "disable" normal http:// requests and users, who still try http should be redirected to the smae page by https...

Obviously you cannot do that fully transparently to the user, as the 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.

Mind that this does not work for *all* browsers, but it works for *most* of them.

Greets,

//Andro


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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux