You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michy <di...@hotmail.com> on 2003/11/06 00:21:45 UTC

[users@httpd] redirect to https for password

Hi Users and Masters...

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?
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


Re: [users@httpd] redirect to https for password

Posted by Michy <di...@hotmail.com>.
> 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