Actually this is better:

RewriteCond %{HTTPS} !on
RewriteRule .* https://webmail.example.com [R,L]
On Nov 21, 2011 8:48 AM, "Igor Cicimov" <icici...@gmail.com> wrote:

> Try this one
>
> RewriteCond %{HTTP_PORT} !443
> RewriteRule .* https://webmail.example.com
> On Nov 21, 2011 3:15 AM, "David Mehler" <dave.meh...@gmail.com> 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-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>

Reply via email to