Configure VirtualHost to Rewrite HTTP://subdomain... to HTTPS://internaldirectory
- by David Kaczynski
How do I configure Apache to rewrite an http request for a subdomain to an https request for the correct directory?
For example, I have the following VirtualHost configuration:
However, this turns http://redmine...us into https://redmine...us/redmine.
Also, changing
RewriteRule ^(.*)$ https://%{HTTP_HOST}/redmine [R] to
RewriteRule ^(.*)$ https://%{HTTP_HOST} [R]
seems to simply redirect the HTTP request to HTTP://...us, which is currently the default /var/www/index.html page.
Any suggestions?