Point backlinks to www.yoursite.com or yoursite.com??

7 replies
  • SEO
  • |
Hey guys, I'm sure this has been asked before but I'm not sure where to look for the answer. I used a backlink analyzer on my site and it said that the www. version had a different amount of links than the non www version. Does this mean the backlink juice is only used for one of the pages at a time. How do I make the most out of every link?
#backlinks #point #wwwyoursitecom #yoursitecom
  • Profile picture of the author Jacob Martus
    Originally Posted by dmac3296 View Post

    Hey guys, I'm sure this has been asked before but I'm not sure where to look for the answer. I used a backlink analyzer on my site and it said that the www. version had a different amount of links than the non www version. Does this mean the backlink juice is only used for one of the pages at a time. How do I make the most out of every link?

    You need to set up a 301 redirect so that you're site only has 1 version. If you can go to your site from both of those urls then that's a problem. If you already have a redirect set up, then all the links pointing to the version you're not using will be funnelled into the primary page.
    {{ DiscussionBoard.errors[2145570].message }}
    • Profile picture of the author RokNStoK
      Hey Jacob,
      When you say 'if you can go to your site using both URL's there's a problem'... if I do a 301 redirect, wouldn't I get redirected to the other site also?

      I will look on the net for how to implement a 301, are there any 'gotchas' I should look out for?

      Thanks Jacob!
      Signature
      Ken
      www.monopolinks.com
      Free One-Way Link Exchange
      {{ DiscussionBoard.errors[2145614].message }}
      • Profile picture of the author Jacob Martus
        Originally Posted by RokNStoK View Post

        Hey Jacob,
        When you say 'if you can go to your site using both URL's there's a problem'... if I do a 301 redirect, wouldn't I get redirected to the other site also?

        I will look on the net for how to implement a 301, are there any 'gotchas' I should look out for?

        Thanks Jacob!
        No you wouldn't be redirected to the other site also. What will happen is:

        If you're preferred url is www.yoursite.com and somebody types in http://yoursite.com it will redirect to www.yoursite.com.
        {{ DiscussionBoard.errors[2145713].message }}
  • Profile picture of the author aandersen
    its pretty easy put this in your .htaccess

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
    that way will change www to non www
    you can reverse it like this

    Code:
    RewriteCond %{HTTP_HOST} ^domain.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
    for the other way

    also note that the line "RewriteEngine On" only needs to appear in your .htaccess 1 time, so if it is present elsewhere there is no need to include it again


    after doing this I suggest you set your preferred domain in webmaster tools (assuming you use it) under Site Configuration > Settings > Preferred Domain

    I would also register and verify both www and non www versions of your site with WMT and sumbit sitemaps on both


    then going forward just try to be as consistent as possible, pick one and stick to it. if someone else links to you and uses the wrong one, it is no big deal as the 301 and preferred domain setting should take care of it but you can make sure that any link you publish sticks to one way and one way only
    Signature

    signature goes here

    {{ DiscussionBoard.errors[2145678].message }}
    • Profile picture of the author Jacob Martus
      Originally Posted by aandersen View Post

      its pretty easy put this in your .htaccess

      Code:
      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
      RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
      that way will change www to non www
      you can reverse it like this

      Code:
      RewriteCond %{HTTP_HOST} ^domain.com [NC]
      RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
      for the other way

      also note that the line "RewriteEngine On" only needs to appear in your .htaccess 1 time, so if it is present elsewhere there is no need to include it again


      after doing this I suggest you set your preferred domain in webmaster tools (assuming you use it) under Site Configuration > Settings > Preferred Domain

      I would also register and verify both www and non www versions of your site with WMT and sumbit sitemaps on both


      then going forward just try to be as consistent as possible, pick one and stick to it. if someone else links to you and uses the wrong one, it is no big deal as the 301 and preferred domain setting should take care of it but you can make sure that any link you publish sticks to one way and one way only
      Yep. That's how I would do it also. However, when I first started messing with .htaccess 5 months ago I messed up something terrible and my site was unavailable. It wasn't until recently that I got familiar with .htaccess.

      Just make sure you save your .htaccess as it was before you edit anything to be safe.

      The directions above are very thorough though so you should be fine.
      {{ DiscussionBoard.errors[2145708].message }}
  • Profile picture of the author dmac3296
    oh okay. thanks martus. i will work on that soon
    Signature
    travel from los angeles - accepting guest posts for Travel and CA Local guides
    {{ DiscussionBoard.errors[2148721].message }}

Trending Topics