Skip to content

Forcing HTTPS with Managed Tools

To force using HTTPS protocol you need to add the following block of code to your .htaccess:


RewriteEngine on   
RewriteCond %{HTTPS} !=on   
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]   
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This rule applies to all domain names in selected virtualhost.