Forcefully redirect webmail to https

ARUN Post in HTACCESS, MAIL, Webmail
0

How to forcefully redirect squirrelmail to https

Go to installation directory

cd /var/www/html/squirrelmail-1.4.22/

vi .htaccess

 

DirectoryIndex index.php

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{SERVER_PORT}      !^443$
        RewriteRule ^(.*)$      https://%{SERVER_NAME}/squirrelmail/src/login.php [L,R=303]
</IfModule>
« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.