How to force SSL or redirect http to https permanently

@Kyrah414 - creating a .htaccess file in the document root where mailwizz is installed (public_html folder maybe) with following contents, should do the trick:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /    
    
    RewriteCond %{HTTPS} !=on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,QSA]
</IfModule>
If not working... then just google after ".htaccess force ssl"
 
Hi @Kyrah414

Currently I have a web site in where I have a .htaccess smilar like twisted1919 says you:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,QSA]
</IfModule>

The content I give you is working very good for the URL of my website.
 
Last edited:
Back
Top