Re: rewrite question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this one

RewriteCond %{HTTP_PORT} !443
RewriteRule .* https://webmail.example.com

On 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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux