How To Set Preferred Domain Version (www. or non-www.) – 2018 SEO The Complete Guide (EP09)

Hey Guys!
Welcome to Episode 9
In this episode, I’ll cover how to set the preferred domain version (www or non-www)

RewriteCond %{HTTPS} on

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]

RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Close Menu
%d bloggers like this: