Both WWW & Non WWW Being Indexed by Google!?

by RAV101
11 replies
  • SEO
  • |
I have setup a new/simple Wordpress blog/website.

I added then verified both the WWW & Non WWW versions to Google Webmaster Tools.

I then set the Preferred Domain to WWW

BUT...

When I go to my browser (Google Chrome) and search for either versions using 'site:' command e.g.:

site:www.mydomain.com

or

site:mydomain.com

Both sets of Google search results, list URL's containing both the WWW and without the WWW respectively.

Is this right??? ...as I thought setting a preferred domain meant only one version will be indexed!!!?

Clarification needed please.

PS I also just installed Simple 301 redirects plugin and will use this to make doubly sure etc...cheers
#google #indexed #preferred domains #www
  • Profile picture of the author easypr
    When you add preferred domain in google webmaster tools, google takes some time to show you changes.

    301 is the permanent redirection for all search engine.
    {{ DiscussionBoard.errors[8886165].message }}
  • Profile picture of the author Kevin Purchase
    Just ensure that when entering the non-www version into the address bar, it immediately re-directs to the www version. To triple-check it's set up correctly, use a Firefox plugin called Live HTTP headers. This way you can make sure it's a 301 re-direct, not a 302.

    If you've only just set up the re-direct, it will take time for Google to de-index your non-www content. Unfortunately, play the waiting game. But if you're posting good, relevant content on a regular basis and have good social signals, the time this takes will be reduced.
    {{ DiscussionBoard.errors[8886198].message }}
  • Profile picture of the author assethomes
    Are you sure you applied for the non-www version
    {{ DiscussionBoard.errors[8886207].message }}
    • Profile picture of the author Rebeccha Haase
      Originally Posted by assethomes View Post

      Are you sure you applied for the non-www version
      Are you sure that you know something about SEO??
      {{ DiscussionBoard.errors[8894677].message }}
  • Profile picture of the author RAV101
    Thanks Guys...great help ;-)

    Originally Posted by Kevin Purchase View Post

    Just ensure that when entering the non-www version into the address bar, it immediately re-directs to the www version.
    Yep it does that...cheers

    Originally Posted by Kevin Purchase View Post

    To triple-check it's set up correctly, use a Firefox plugin called Live HTTP headers.
    Couldnt quite figure how to use/read the results of the add-on/extension...bit over my skill level im afraid. However i did a triple check using 301 and 302 Redirect Checker - Check up to 4 levels of results and it checks out fine...cheers

    Originally Posted by Kevin Purchase View Post

    If you've only just set up the re-direct, it will take time for Google to de-index your non-www content.
    So, does that mean I should setup the 301 redirect plugin 1ST - configure 301 redirects etc BEFORE setting adding both WWW version/setting the preferred domain etc in Google Webmaster tools??

    Cheers
    Rick
    {{ DiscussionBoard.errors[8888292].message }}
  • Profile picture of the author loaf1011
    I wouldn't recommend messing around with 301s and such when a rel=canonical will do just the job! Install Yoast SEO for Wordpress and you'll be all set! (Kudos for already doing the right thing in Webmaster Tools!)
    Signature
    BRAND NEW for January 2016: Want to grow your business to six-figures in 2016? Take the quiz to see if your business is ready to make six-figures this year!
    {{ DiscussionBoard.errors[8888317].message }}
  • Profile picture of the author RAV101
    Originally Posted by loaf1011 View Post

    I wouldn't recommend messing around with 301s and such when a rel=canonical will do just the job! Install Yoast SEO for Wordpress and you'll be all set!
    I have installed Yoast SEO...but I'm a little concerned after reading How to Properly Set up WordPress 301 Redirects to maintain SEO & Inbound Links

    ...can you elaborate on a "rel=canonical will do the job"???

    Finally...Can you or others here, offer any insight/advice on these 2 new related questions I have:

    1- If I don't use the WP plugin 'Simple 301 Redirects' and instead opt to edit the .htaccess file (to point non-WWW version to the WWW) with code:

    RewriteEngine On
    RewriteBase /
    RewriteCond % ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]


    ...Then does the code above act as a catch-all for all pages/posts on the site underneath the homepage?? ...or do I need to repeat the code for each page/post???

    2- In my Yoast SEO plugin...I have configured a trailing slash. Im not actually sure why i have but read it was a good idea...anyway when entering the URL of the original and destination locations (in either the plugin or .htaccess) should I finish it with the trailing slash '/' ???

    Thanks very much
    {{ DiscussionBoard.errors[8888614].message }}
    • Profile picture of the author Kevin Purchase
      Originally Posted by RAV101 View Post

      I have installed Yoast SEO...but I'm a little concerned after reading How to Properly Set up WordPress 301 Redirects to maintain SEO & Inbound Links

      ...can you elaborate on a "rel=canonical will do the job"???

      Finally...Can you or others here, offer any insight/advice on these 2 new related questions I have:

      1- If I don't use the WP plugin 'Simple 301 Redirects' and instead opt to edit the .htaccess file (to point non-WWW version to the WWW) with code:

      RewriteEngine On
      RewriteBase /
      RewriteCond % ^example.com [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]


      ...Then does the code above act as a catch-all for all pages/posts on the site underneath the homepage?? ...or do I need to repeat the code for each page/post???

      2- In my Yoast SEO plugin...I have configured a trailing slash. Im not actually sure why i have but read it was a good idea...anyway when entering the URL of the original and destination locations (in either the plugin or .htaccess) should I finish it with the trailing slash '/' ???

      Thanks very much
      Your 301 sounds like it's set up fine. Since that and Google both take a few minutes to set up, I don't really think it matters which you do first. But as long as the 301 is working, you won't have any problems.

      Just a note for the future, rel=canonical is handy, but shouldn't be used for big site-wide issues like a non-www to www re-direct.
      {{ DiscussionBoard.errors[8888908].message }}
  • Profile picture of the author RAV101
    Originally Posted by Kevin Purchase View Post

    Your 301 sounds like it's set up fine. Since that and Google both take a few minutes to set up, I don't really think it matters which you do first. But as long as the 301 is working, you won't have any problems.

    Just a note for the future, rel=canonical is handy, but shouldn't be used for big site-wide issues like a non-www to www re-direct.
    Thanks mate :-)


    Can someone please give me some answers/advice re questions below?

    1- If I don't use the WP Plugin 'Simple 301 Redirects' (because, it seems to me I have to add every page and post - and at the moment I have just added a 301 for the non-www of the home page to the www version of the home page within this plugin) and instead opt to edit the .htaccess file (to point non-WWW version to the WWW) with code:

    RewriteEngine On
    RewriteBase /
    RewriteCond % ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]


    ...Then does the code above act as a Global/Catch-all for all pages/posts on the site underneath the homepage to tell search engines all pages found using the 'WWW'?? ...or do I need to repeatedly enter the code for each page/post???

    2- In my Yoast SEO plugin...I have configured a trailing slash. I'm not actually sure why I have but read it was a good idea...anyway when entering the URL (whether in the plugin or via editing the .htaccess) of the original page and destination location should I enter the URL also with the trailing slash '/' ???

    Cheers
    {{ DiscussionBoard.errors[8891065].message }}
    • Profile picture of the author Kevin Purchase
      Originally Posted by RAV101 View Post

      Thanks mate :-)


      Can someone please give me some answers/advice re questions below?

      1- If I don't use the WP Plugin 'Simple 301 Redirects' (because, it seems to me I have to add every page and post - and at the moment I have just added a 301 for the non-www of the home page to the www version of the home page within this plugin) and instead opt to edit the .htaccess file (to point non-WWW version to the WWW) with code:

      RewriteEngine On
      RewriteBase /
      RewriteCond % ^example.com [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]


      ...Then does the code above act as a Global/Catch-all for all pages/posts on the site underneath the homepage to tell search engines all pages found using the 'WWW'?? ...or do I need to repeatedly enter the code for each page/post???

      2- In my Yoast SEO plugin...I have configured a trailing slash. I'm not actually sure why I have but read it was a good idea...anyway when entering the URL (whether in the plugin or via editing the .htaccess) of the original page and destination location should I enter the URL also with the trailing slash '/' ???

      Cheers
      No problem. With your first question, that 301 you have right there will be for the whole domain, no problems. I'm not so sure about the Yoast thing.
      {{ DiscussionBoard.errors[8892796].message }}
  • Profile picture of the author anoopsparx
    if you recently add the 301 redirection, then google takes time to reindexed your pages with www. you don't need to worry. Just check the indexing after 10 to 15 days, If the problem is still on then you need to check your redirection codes.
    {{ DiscussionBoard.errors[8894670].message }}

Trending Topics