WWW and Without WWW Backlinks
-
I have just seen through ahrefs and found without WWW have more backlinks instead of WWW. Is there any way to forward all those without WWW to WWW domain, is there any harm or effect in serp ranking?
-
You'll want to add a 301 redirect to your htaccess file redirecting non-www URLs to www. This will pass the link value to www, as well as prevent potential duplicate content issues. Here is the code to use:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
-
Hi Chandu,
Here's everything you ever wanted to know about canonicalization:
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Hundreds of Thousand Spammy Backlinks Overnight
Hello,
Technical SEO | | JDLitchfield
I have a client who unfortunately got breached (not sure how) and as a result 6 HTML files promoting gucci bags and Louis Vuitton bags were put in the root.
I found the files within a week of them being put there but what I didn't realise (and only found yesterday when looking at the backlink profile) was that there are literally hundreds if not thousands of spammy domains pointing at these files. Some of the sites 404 but some are posts on other bloggers sites who auto accept comments and they total 10,000 links so impossible to remove. Question is: Will Google understand what has happened and ignore these links (especially because the pages don't exist on the server?) Should I use the Disavow tool to block these 1000 odd domains (can it do any harm?) and more links are being found every day so do I just keep doing it? Is there another way to explain to Google what has happened? Your help would be greatly appreciated. Thanks
James0 -
How to Let Google Know I am a new Site Owner and to Remove or De-value all backlinks?
I am looking to buy a new domain for a brand. Problem is the domain has was registered in 1996 and has around 6k backlinks (according to ahrefs) that I need removed as the old content will have no relevance to my new site. Should I just disavow all of them? Is there anything "special" I can do to let Google know that it will be new site owner/content and to remove/discount the current links?
Technical SEO | | RichardSEO0 -
Canonicial redirect non-www to WWW in Magento
I am wondering if I have covered the non-www to www redirect in my Magneto OK? I have nominated the preferred URL in google webmasters. I have selected the correct boxes in Magento admin. when I type the "no www" version it redirects OK. Should I still be adding something to .htaccess? Thanks
Technical SEO | | Paul_MC0 -
Site rebuild without HTML extension = broken links?
I have a client and his site is pure HTML. He made huge amount of link building with some hundreds of links point to example.com/target.HTML Now we decided to use WordPress with the same site structure. If we use the exact same URLs but without the HTML ending will it cause broken links? Is there any best practice for this kind of change? Many thanks for any idea!
Technical SEO | | seozoltan0 -
My webmaster doesn't shows backlinks data why???
Hi every one I have 2 websites with same domain with targeting different country name for example www.domain.com.au and the other is wwww.domain.co.nz . So my question is that in webmaster tool my one domain doesn't shows back links data or search query data. why this is happen?
Technical SEO | | SanketPatel0 -
Right redirect to transfer juice www, no-www and website movement
Hi here is my problem, I have a website which works both with www. and without www; Now I want to optimize it and transfer it to another new domain along with the link juice of both the old domain with www and without www. I don't want to do it with multiple redirects but with just one clean redirect (I know that search engines don't like that, am I right?). What should I write in the .htaccess of the old domain and in the one of the new domain? To summarize I want something like that: www.oldsite.com/anyfile.html>301>www.newsite.com/anyfile.html oldsite.com/anyfile.html>301>www.newsite.com/anyfile.html newsite.com/anyfile.html>301?>www.newsite.com/anyfile.html Thanks
Technical SEO | | darkanweb0 -
Www vs non www and understanding opensite
Hi Guys, New guy here with some questions regarding the difference between www and non www. I am helping with a site at the moment and gradually working my way through bits and learning all the time. I was watching one of the seomoz videos and it brought my attention back to www vs non www. I understand that google will treat these as two seperate sites but wanted to check what the stats are telling me. I was under the impression that www.mydummysite.com was getting most links etc as this is what I have always used. However when I used Opensite explorer it told me something different as follows: www.mydummysite.com 32/100 29/100 5 16 mydummysite.com 32/100 29/100 2 1,500 Am i correct in saying that i should be adding a redirect from www.mydummysite.com to mydummysite.com ???? I am thinking that this is telling me that I am potentially missing out on 1,500 links to my site but it could mean I am missing out on just 16. Eitherway I guess its something I should fix right? Do I just redirect that page or would all pages beneith it such as mydummysite.com/news also need redirect??? Can i use Canonical Rel links for this now? Thanks for taking the time to read and reply! 🙂
Technical SEO | | wedmonds0 -
How do I redirect non-www to www in IIS?
There is a lot of talk about this all over this site (and other's), but just about every solution mentions using the .htaccess file, which is only a solution for Apache. My sites are in a shared windows environment, so that won't work for me. I have access to the IIS manager for the server, and have several page-level redirects in place. My issue is that I cannot find a clear and easy way to re-direct my root (domain.com) domain, to my preferred specific domain (www.domain.com). I found a few articles online relating to a URL re-write module for IIS, but am not sure if I will be able to install that on a shared web server. Is there another way to accomplish my goal of not having 2 indexable versions of my site? I have rel-canonical tags on every page, but would prefer a more trustworthy and established solution. Thanks for any help you can offer. -Dave
Technical SEO | | dschapira0