Rewrite to HTTPs doesn't work for aliasdomains (Apache)
Summary
Rewrite HTTP to HTTPS doesn't work for aliasdomains with own redirect rules (e.g. subdirectory) in Apache
Steps to reproduce
- Setup a website and an aliasdomain for it
- Set this aliasdomain redirecting to any subdirectory via Redirect Path...
- Enable Rewrite HTTP to HTTPS for this website
If you open the website itself in the browser, the rediret to https works for the website itself. If you open the aliasdomain, the redirect doesn't work and stays with http.
Correct behaviour
redirect should also work for the aliasdomain
Suggestions
either we should add a corresponding checkbox to all alias and subdomains, to make it possible to enable https-rewrite for all domains, or we can move the https-rewrite-rule in vhost-config to the top, that it is called as the first one.
for sure both solutions mean impact - in the latter case also redirects to external URLs would be translated to https before redirected, which might be the wrong behaviour for several cases - but in my opinion this is the correct behaviour anyway... if I enable this redirect for my hole website, i would expect that it works with all domains and sudbomains. If I don't want it for all domains I can still use htaccess for the selected domains and keep it disabled for the website itself... The option to add a checkbox to all aliasdomains seems to be inconvenient if there are many domains in a website...