Welcome to our website
To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.
Nginx redirect www to non-www
Posted by Philipp Esselbach on: 11/17/2010 02:23 PM [ Print | 0 comment(s) ]
Go2Linux posted a Nginx guide about redirecting 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.
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.
Nginx redirect www to non-www
