Webmasters Stack Exchange is a question and answer site for pro webmasters. 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 want to redirect http://www.mywebsite.com to http://mywebsite.com.

I would like to avoid duplicated content. Is 301 redirect in nginx sufficent? Is it needed for me to add a CNAME record? My concern is that CNAME record may affect my seo.

Please bare with me, as I am very new to this. I see that this question has been asked here before, but there was no mention on whether 301 redirect is sufficient without CNAME.

thanks very much!

share|improve this question
Thanks John. Your explanation was straight to the point – Kate Feb 13 '14 at 17:45
up vote 1 down vote accepted

A 301 redirect in nginx will suffice. You can also specify your preferred domain in Google Webmaster Tools.

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.