httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Arnold <carn...@electrichendrix.com>
Subject RE: [users@httpd] Redirect HTTP to HTTPS
Date Mon, 09 Feb 2015 14:51:20 GMT
    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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message