2 replies
  • SEO
  • |
While setting preferred domain in WMT, i got this error

Part of the process of setting a preferred domain is to verify that you own ceou(dot)org/. Please verify ceou(dot)org/.

Redirection part by htaccess file is done. But for google i want to redirect it with www. domain

Please, help me how to redirect the site to when i'm facing this error.
  • Michealburns,

    Not sure if you realize it but you have a two part question here. The error you are receiving in WMT is related to your canonicalized domain on your website. The preferred domain you set in WMT should be the same as the domain (www or non-www) that your domain resolves to.

    In .htaccess you will want to insert code that looks like this (www to non-www)

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

    If you want it the other way around (non-www to www) just reverse the last directive with the middle one.

    Whichever domain you have your site resolving to is the one you should enter in webmaster tools to get rid of that error.

    More on .htaccess,

    Redirecting non-www to www with .htaccess | dense13.com

    Hope that helps you,

    Shawn
    Signature
    Outsource to the experts...

    We customize your Blog, eBook, Press Release and Sale Copy content with your message.

    {{ DiscussionBoard.errors[7524513].message }}
  • Profile picture of the author C Rebecca
    In order to set the preferred domain you have to add to the Dashboard of Google Webmaster Tools your site twice, with both URLs, with-www and without-www, and verify for both, because they are not considered as exactly the same site by Google Webmaster Tools.

    Did you add to Google Webmaster Tools your site for both with-www and without-www?
    Signature

    FREE 30 minutes of Ecommerce Marketing consultation. Consulted clients like Overstock.com, About.com, Lowe's and more...
    Book at: hello@techzui.com

    {{ DiscussionBoard.errors[7529651].message }}

Trending Topics