Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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. –  bybe Jun 8 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 at 9:38
    
Nope, Just ensure that your redirecting all requests as 301 or 302. –  bybe Jun 8 at 12:49
    
@bybe can you please copy your comment to an answer so that I can give it to you? :) –  chris Jun 9 at 2:52
    
Hi @Chris I've added the answer, thanks. –  bybe Jun 9 at 16:25

1 Answer 1

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

 
discard

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.