Re: Redirect http to https

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

 



you can Redirect / to https://domain/share/

RedirectMatch is to use regular expressions, pcre.

Please read the different uses at:
http://httpd.apache.org/docs/current/mod/mod_alias.html

El Thu Jan 29 2015 at 13:37:15, Chris Arnold (<carnold@xxxxxxxxxxxxxxxxxxx>) escribió:
Don't use pcre in redirect.

For what you ask you just need a simple:
Redirect / https://yourdomain/ in the nonssl virtual host.

If you insist on using pcre with redirect for some particular reason you have not mentioned yet, use RedirectMatch.

Won't that redirect all traffic? I only need to redirect http://share traffic to https://share.domain.tld/share. Maybe this is where, as you mention, to use redirectmatch?

[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