Redirect WWW / No-WWW htaccess
You should really be doing one or the other. For consistency, as well as SEO's, sake. Force the www. RewriteEngine On RewriteCond %{HTTP...
https://iskablogs.blogspot.com/2014/03/redirect-www-no-www-htaccess.html
You should really be doing one or the other. For consistency, as well as SEO's, sake.
Force the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^your-site.com [NC]
RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301]
Remove the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your-site.com$ [NC]
RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301]
Force the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^your-site.com [NC]
RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301]
Remove the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your-site.com$ [NC]
RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301]