If RewriteEngine is already turned on from a previous section (i.e., WP Cache Enabler Advanced Settings) then comment it out with the pound sign.
# BEGIN Non-WWW to WWW with HTTPS
#RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC,OR]
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,NC,L]
# END Non-WWW to WWW with HTTPS
Comments
0 comments
Article is closed for comments.