Problem with Duplicate Page Wordpress
-
Hi all
My name is Riccardo and i work for a web agency. I'am working on a new client website and i have found this kind of errors through MOZ (Image 1). I checked all the URLs; they work and they remind to the Homepage.
The website is made with Wordpress. I have already tried to solve this problem with 301 redirect but, as i supposed, it didn't work.
I think that is a problem related to Wordpress URL in Wordpress settings (Image 2). However i would like to know if anybody had the same problem or if there are other possibile causes.Thank you in advance!
-
Hi Riccardo,
You have not configured the WordPress website the right way for SEO. Read the problem for SEO first.
Q: What is a canonical url? Do you have to use such a weird word, anyway?
A: Sorry that it’s a strange word; that’s what we call it around Google. Canonicalization is the process of picking the best url when there are several choices, and it usually refers to home pages. For example, most people would consider these the same urls:But technically all of these urls are different. A web server could return completely different content for all the urls above. When Google “canonicalizes” a url, we try to pick the url that seems like the best representative from that set.
https://www.mattcutts.com/blog/seo-advice-url-canonicalization/
The solution
In order to redirect all requests for www.yourdomain.com to yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in your public_html folder:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]I hope this helps.
Regards,
Vijay
-
Hi Vijay
Thank you for your answer!
Unfortunately i didn't develop the website and i don't know what it has been done. However i think you are right because i noticed that all the old 301 redirects remind to the main domain with www-
So, according to your article, Google reasonably considers most important the "www.example.com" urls.
So i will modify all the old 301 redirects and then i will try to modify the .htaccess as you suggested.Thank you again for your time and consideration
Have a nice day!
-
You are most welcome, feel free to ask further questions.