Nginx redirect www to non-www
Posted on: 11/17/2010 03:23 PM

Go2Linux posted a Nginx guide about redirecting www to non-www

Nginx redirect www to non-www


It is not a good idea from the SEO point of view, to have duplicated content. If your content can be accessed from both www.yourdomain.com and yourdomain.com you will have duplicated content. This is true at least for Google and other search engines.
So, to avoid that, you need to forward all your www.yourdomain.com/something to yourdomain.com/something, of course you can do it the other way too.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/nginx_redirect_www_to_non_www.html)