RE: Redirect HTTP to HTTPS

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

 



    ProxyPass /webapp/ https://sub.example.com/webapp/
    ProxyPassReverse /webapp/ https://sub.example.com/webapp/
    RedirectMatch ^/$ https://sub.example.com/webapp/

    #  Redirect iFolder and Admin to HTTPS
    Redirect /webapp2 https://example.com/webapp2
    Redirect /webapp3 https://example.com/webapp3

The above redirects what we need it to redirect. The issue is, the main site example.com is also redirected to https://subdomain.example.com/webapp. So i comment out the above RedirectMatch ^/$ https://sub.example.com/webapp/ and the main example.com works as expected but all the redirects dont work so i am fairly confident it is the RedirectMatch ^/$ https://sub.example.com/webapp/ that is the issue. I also tried RedirectMatch ^/webapp(.*) https://sub.example.com/webapp/ and this allows the main example.com to work but sub.example.com also lands you on the main example.com site. Any ideas on how to exclude example.com from being redirected? Can you use a RewriteCond, something like this:

RewriteCond %{REQUEST_URI} ! example.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-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