httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michy" <divinapropor...@hotmail.com>
Subject Re: [users@httpd] redirect to https for password
Date Wed, 05 Nov 2003 23:36:20 GMT
> I would like to redirect the http traffic to https when I have to write a
> password (say via .htaccess)
>
> RewriteCond ???
> RewriteRule RewriteRule ^(.*) https://www.hostname.com$1 [R,L]
>
> Can someone help me?

I found this:

  RewriteCond %{HTTP:Authorization} ^.+
  RewriteRule ^(.*) https://%{HTTP_HOST}$1 [R,L]

but unfortunately %{HTTP:Authorization}is empty when the login windows
appear ;-((

Heeeelp!!

Cheers,
Michele
--
Michele Marcionelli - webmaster@math - Phone: +41 1 632 6193
Address: HG G 14 - Rämistrasse 101 - 8092 Zürich - Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message