httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] rewrite question
Date Sun, 20 Nov 2011 21:48:06 GMT
Try this one

RewriteCond %{HTTP_PORT} !443
RewriteRule .* https://webmail.example.com
On Nov 21, 2011 3:15 AM, "David Mehler" <dave.mehler@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-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