Question about www. vs no www

lemons884

King Shit
Oct 15, 2008
462
3
0
Maryland
Okay so my website is "http://mywebsite.com" but I have done various backlink work in the buy/sell/trade section with "http://www.mywebsite.com"

Is this gonna effect my backlink effectiveness and/or page rank? And if so how do I go about fixing this problem?
 


If you are using Wordpress, just change your Blog Address URL.

Otherwise, in .htaccess, add these lines:
START FROM HERE
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mywebsite_com
RewriteRule (.*) http://www.mywebsite_com/$1 [R=301,L]

THAT IS IT.

(Replace _ with .)

If you have access to your web server, open httpd.conf and add these same lines within your VirtualHost section.
 
alright...changed wordpress blog url to the one with www and notified google webmaster.

Think this is all I need to do.

Thanks zxcvb for the help.
 
Yes, it will affect your backlinks... It is splitting your backlinks between two domains. Your website is not getting credit for all the backlinks.

You need to set preferred domain in your webmaster tool and redirect your one domain to main domain.
 
is using the G webmaster tool is enough?

also there isn't some javascript to refer the url in case of non www urls.
(because there are people here with asp an aspx running with no htaccess)
 
I would do more than just the GWT fix.

There should be a way to do a perm re-direct (301) somewhere on your host. Call your hosting provider if you are newer and do not see an option for re-directs in your hosting control panel.