Actually this is better:
RewriteCond %{HTTPS} !on
RewriteRule .* https://webmail.example.com [R,L]
Try this one
RewriteCond %{HTTP_PORT} !443
RewriteRule .* https://webmail.example.comOn Nov 21, 2011 3:15 AM, "David Mehler" <dave.mehler@xxxxxxxxx> wrote:Hello,
I've got a rewrite question. I'm running webmail on
webmail.example.com and I've got that secured by ssl. If I go to:
https://webmail.example.com
it works. But as a user if they go to either of:
http://webmail.example.com
or just:
webmail.example.com
without the protocol it doesn't. I'd like to have a rewrite setup so
that those last two situations are dealt with. Ideally if the user
types in the full path and protocol or just webmail.example.com
they're redirected to the ssl-encrypted page.
Thanks.
Dave.
---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx