WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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 currently have my blog at alexangas.com and would like to move it to www.alexangas.com.

Is this as simple as changing the WordPress Address and Site Address in Settings? How can I ensure that users hitting alexangas.com/someblogpost are automatically redirected to www.alexangas.com/someblogpost?

share|improve this question
To clarify: www.alexangas.com is a CNAME for alexangas.com, so this simple solution will indeed work. The redirection is handled by the redirect_canonical function. In more complicated situations (where they are not on the same server), you need a more advanced setup. – Jan Fabry Feb 17 '11 at 14:04
up vote 1 down vote accepted

Yes. I just did an experiment on my own site to verify that changing those settings will redirect between www and non-www as you specify.

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.