: Should sitemap contain URL for all categories of Product? I am having open cart eCommerce website. Here I need to add one product under multiple Categories. By default what opencart produces
I am having open cart eCommerce website. Here I need to add one product under multiple Categories. By default what opencart produces SITEMAP.xml, it includes URL for all the categroies for that product.
Example:-
mywebsite.com/category1/product1
mywebsite.com/category1/category2/product1
mywebsite.com/category1/category3/product1
mywebsite.com/product1
Apart from that I am including on All the webpages.
rel=canonical
And the canonical URL looks like below
mywebsite.com/product1
So My question is, will including so many LINKs help? Or any of the ONE from above will help? May it be shortest or longest. Kindly help
More posts by @Jessie594
2 Comments
Sorted by latest first Latest Oldest Best
You need to add the every unique URL to the XML Sitemaps.This helps in Google bots to crawl your websites in depth.
And also add different types of Sitemaps support.google.com/webmasters/answer/156184?hl=en which is associated with every product.
You do not want your XML sitemap to include duplicate content. In your case, it sounds like that one product exists at multiple URLs, which is the very definition of duplicate content. So, what I'd say is that you want to have the page mywebsite.com/product1 (the canonical version of the URL) in your XML sitemap, then keep the others out of your XML sitemap.
Including all the versions of the URL won't help. Likely, it will just confuse Google and may lead to Google ignoring certain URLs in your XML sitemap. To get the most out of your XML sitemap you don't want Google ignoring any pages from the XML sitemap. In my experience, keeping the XML sitemap clean makes it more useful. That means no error pages, no thin content pages, no redirect pages, and no duplicate content pages.
Also, keep in mind that there is no guarantee Google will follow your XML sitemap. Even if you put in the canonical version and have the rel canonical tag on your pages, Google may still choose to treat another version of the URL as canonical.
Ideally, then, I'd solve the real problem here and just have one version of the product URL on your site (have the versions with the category in the URL redirect to the version of the URL with no category in the URL). That way you don't even have to worry about all the issues duplicate content may cause.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.