Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've read tons of questions but I can't find the answer to this seemingly obvious issue.

I'm moving my WordPress site from example.com to www.example.com so that I can use CloudFlare. I did the change in WP and everything works fine, with example.com redirecting correctly.

Do I need to add the www site in GWT (and remove example.com) or will it keep tracking the website correctly thanks to the redirections?

share|improve this question
You should add www. to GWT. – Simon Hayter Jun 8 '14 at 9:10
@bybe Thanks. Do I need to do anything more or GWT will simply consider it as a new site, and then I'll remove the domain.com? – chris Jun 8 '14 at 9:38
Nope, Just ensure that your redirecting all requests as 301 or 302. – Simon Hayter Jun 8 '14 at 12:49
@bybe can you please copy your comment to an answer so that I can give it to you? :) – chris Jun 9 '14 at 2:52
Hi @Chris I've added the answer, thanks. – Simon Hayter Jun 9 '14 at 16:25
up vote 1 down vote accepted

301 Redirects

When adding the sub domain www. to an existing site you will need to ensure that all requests are redirected using a 301 permanent, this can be achieved by using a simply .htaccess rewrite command that catches all requests from non-www to www.

Adding non-www and www. to GWT

You should proceed to add www. to Google Webmaster Tools since it'll be treated as a different site, however because you have the 301 in place Google rankings should be pretty much the same as the non-www.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.