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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to