Code: Select all
<VirtualHost *:80>
<LocationMatch "^/sac/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
<LocationMatch "^/webmail/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
</VirtualHost>
I figured I could so something similar for the mobile access by adding a further couple of lines in the conf.
Code: Select all
<LocationMatch "^/m/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
I made the edit, and restarted apache, but this doesn't seem to be effective. What am I missing? Both URLs -- http://mail.xxxx.com/m/ and https://mail.xxxx.com/m/ -- work, but traffic isn't redirected from http to https.
Its not a deal breaker, but I like things to work ...