Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

Redirecting non-www to www with .htaccess?

Ads
zorro Offline referral

Posts: 127
Joined: Mar 2014
Reputation: 0

#1
Member
I am able to access my website from both www and non www URL I know that this will cause duplicate issue with the SEO how to 301 redirect it?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
It's quite important for SEO you right about that. Simply open or create a new htaccess file and add this code to it:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Remember that this only works of Apache servers!





User(s) browsing this thread: 1 Guest(s)