Apache’s mod_rewrite makes it easy to redirect normal pages to HTTPS. Because users often forget to type in the https. HTTPS very important for mail web access like squirrelmail or roundcube, to prevent clear text transmission of your passwords and messages
Edit your yirtual host and put this rewrite rules in it:
The easy one solution:
1 | Redirect permanent / https://mx.idrobot.net/ |
Another solution:
1 2 3 | RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] |
Leave a Reply