Forum Moderators: phranque
# SET ALL URLS TO WWW VERSIONS
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteRule (.*) https://www.example.com/$1 [R=301,L] That's how mine is and the switch went quite smoothly. My host suggested that I add one more rule and I did, but I don't see it as a "must have", they said it took care of scripts and external resources: RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]