Jump to content

Duplicate URLs in sitemap.xml


scottpeter123

Recommended Posts

Hi,

 

I am using PS 1.4.3.

 

I have generated sitemap.xml via the 'Google sitemap

v1.6 by

PrestaShop' module. Tested the sitemap via google webmasters tools and it cam back that i had '99 errors -

This URL is a duplicate of another URL in the sitemap. Please remove it and resubmit".

Looking through the site map, it appears all products have a duplicate entry, see below an example of one product:

 

Obviously i can remove theses manually and submit, but as i add products, it will mean doing it each time. Does anybody know why it is duplicating and anyway it can be stopped?

 

Thanks.

 

 

 

<url>

 

 

<loc>

</loc>

<priority>0.5</priority>

<lastmod>2012-01-27</lastmod>

<changefreq>weekly</changefreq>

 

 

<image:image>

 

 

<image:loc>

</image:loc>

<image:caption>Double Drum</image:caption>

<image:title>Double Drum</image:title>

</image:image>

</url>

 

 

<url>

 

 

<loc>

</loc>

<priority>0.5</priority>

<lastmod>2012-01-27</lastmod>

<changefreq>weekly</changefreq>

 

 

<image:image>

 

 

<image:loc>

</image:loc>

<image:caption>Double Drum</image:caption>

<image:title>Double Drum</image:title>

</image:image>

 

</url>

Link to comment
Share on other sites

Just done a google site search for my site (this is the first time google has indexed it) and it is showing as duplicate URLs for the http:// version and also the https:// version. But not on all pages.

 

Could this be the issue of the duplicates, although the site map only shows that the URL is http://.

 

Any help would be great as i am sure this is likely to cause issues for how the site lists.

 

Thanks

Link to comment
Share on other sites

Hi,

 

I am using PS 1.4.3.

 

I have generated sitemap.xml via the 'Google sitemap

v1.6 by

 

PrestaShop' module. Tested the sitemap via google webmasters tools and it cam back that i had '99 errors -

This URL is a duplicate of another URL in the sitemap. Please remove it and resubmit".

 

Looking through the site map, it appears all products have a duplicate entry, see below an example of one product:

 

 

Obviously i can remove theses manually and submit, but as i add products, it will mean doing it each time. Does anybody know why it is duplicating and anyway it can be stopped?

 

Thanks.

 

 

 

 

<url>

 

 

<loc>

 

 

</loc>

<priority>0.5</priority>

<lastmod>2012-01-27</lastmod>

<changefreq>weekly</changefreq>

 

 

<image:image>

 

 

<image:loc>

 

 

</image:loc>

<image:caption>Double Drum</image:caption>

<image:title>Double Drum</image:title>

 

</image:image>

 

</url>

 

 

 

<url>

 

 

<loc>

 

 

</loc>

<priority>0.5</priority>

<lastmod>2012-01-27</lastmod>

<changefreq>weekly</changefreq>

 

 

<image:image>

 

 

<image:loc>

 

 

</image:loc>

<image:caption>Double Drum</image:caption>

<image:title>Double Drum</image:title>

 

</image:image>

 

 

</url>

 

Hello,

 

It is happening because the module in the older versions of PrestaShop repeats the link for every image that is listed on the product page, e.g. if you have 3 images, the link is listed 3 times.

 

We have a module for older versions of PrestaShop to correct this: http://www.cartexper...p-protocol.html

Link to comment
Share on other sites

For me it has another reason. On the old version I deleted on link the EAN (14.4.0). On the new module (just upgraded to 1.4.6.2.), the URL-link has again the EAN included AND what it is new: also the product-pictures now have the EAN-link in the URL-picture Link. On old Version I hadn't this.

 

My dublettes on sitemap.xml are referring to product pictures with and without EAN in the Link. I changed the link.php again to without EAN.

Link to comment
Share on other sites

I found a simple solution to this:

Download the latest version of prestashop

2. in /modules replace gsitemap module

3. go to admin - modules tab - seo - Google Sitemap - configure

4. recreate sitemap

5. go to your webmaster tools and resend the sitemap

No more errors! :)

Link to comment
Share on other sites

I found a simple solution to this:

Download the latest version of prestashop

2. in /modules replace gsitemap module

3. go to admin - modules tab - seo - Google Sitemap - configure

4. recreate sitemap

5. go to your webmaster tools and resend the sitemap

No more errors! :)

 

I have the the last version, 1.4.6.2 and still have this problem when recreating the sitemap !!

Link to comment
Share on other sites

  • 2 weeks later...

thank you! This worked for me too on all 4 stores running 1.4.0 and 1.4.1.

 

Previously, I had some image file urls replicated up to 25 times in my sitemap.

 

I overwrote the gsitemaps module with the latest version 1.8, generated a new sitemap and it is perfect.

 

Thanks again!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...