Redirect non-www to www and http to https .htaccessAndy·Aug 5, 2018·1 min readRewriteEngine On RewriteCond %{HTTP_HOST} !^www\\. \[NC\] RewriteRule ^(.\*)$ http://www.%{HTTP_HOST}/$1 \[R=301,L\] RewriteCond %{HTTPS} off RewriteRule ^(.\*)$ https://%{HTTP_HOST}%{REQUEST_URI} \[L,R=301\] apacheserver