RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !^/sites-admin [NC] RewriteCond %{REQUEST_URI} !^/.cm4all [NC] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,QSA]