Answer the question
In order to leave comments, you need to log in
Redirect in .htaccess from http + www to https + www?
the site already has a redirect to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
you need to set another redirect to https
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{HTTP} On
RewriteCond %{HTTP_HOST} !^www.(.+) [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question