: Dealing with "duplicate content" warning I have a website and, when testing with a SEO tool called woorank, I have the following result: Be careful. Your website without www doesn't redirect
I have a website and, when testing with a SEO tool called woorank, I have the following result:
Be careful. Your website without www doesn't redirect to www (or the
opposite). It is duplicate content!
I have launched the website about 7 days ago, and it hasn't yet been indexed.
p.s:
Google Webmaster Tools shows no errors.
Google Analytics also works without any issues.
More posts by @Reiling115
2 Comments
Sorted by latest first Latest Oldest Best
It's saying that if you browse to either of
example.com or example.com
you end up seeing the same content, but the URLs in your address bar remain distinct.
What you want, is for one or the other to automatically redirect to the other one. My personal preference is to have non-www redirect to It's becoming "fashionable" to drop the www, but Facebook use it, and Google use it, and I figure they probably know the UX implications of it better than I do.
Anyway, to set up the redirect you add this to your Apache configuration, either in httpd.conf or in a .htaccess file.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.yourdomain.com [NC]
RewriteRule (.*) www.yourdomain.com [R=301,L]
Or this to your nginx configuration, probably in the same file as your main server block config:
server {
listen 80;
server_name yourdomain.com;
return 301 www.yourdomain.com$request_uri; }
(or something similar if you want to go the non-www root).
The theory is, that it's bad to have your content available on two different URLs.
1) search engines allegedly prefer unduplicated content
2) consistency is good for your brand and your users
All that error means is that users can pull up your pages both with and without the This might mean you have duplicate content issues if you haven't implemented canonical URLs to take care of this for you.
To solve this just set up a 301 redirect either to or from the www and this error will go away.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www.|$) [NC]
RewriteRule ^ www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
You can also tell Google which is your preferred domain.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.