put this in your htaccess file:
1 2 3 4 | RewriteCond %{HTTP_HOST} !^www\.(.*) RewriteRule (.*) https://www.%{HTTP_HOST}/\ [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
put this in your htaccess file:
1 2 3 4 | RewriteCond %{HTTP_HOST} !^www\.(.*) RewriteRule (.*) https://www.%{HTTP_HOST}/\ [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Leave a Reply