How do I redirect to a non-www version and make it the default URL?
This process can be broken into 2 steps: Using .htaccess for Redirection First, you should redirect any traffic from www to non-www version of your website, by using a simple rewrite rule: RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] This … Read more