Jump to content

Sitemap module


Recommended Posts

Hi guys,

 

Due to the new changes in Google webmaster interface, you are no longer allowed to submit a sitemap that has a duplicate URL.

Unfortunately, there is a duplicate in the generated sitemap, namely the root of the site (www.site.com/ appaers twice).

 

Anyone knows how to remove the second entry? Would be highly appreciated!

Thanks.

Link to comment
Share on other sites

I noticed this today also, the root url can be found at the beginning of the sitemap and the duplicate is near the end. If you have more than one language installed there will be duplicates for these also (www.mysite.com/eu etc).

 

I just deleted the duplicates manually and resubmitted the sitemap to google and the warning went away.

 

No idea why they are there in the first place.

Link to comment
Share on other sites

It seems the best help you can get is only from yourself...

 

For those interested in a solution (other than editing your sitemap manually) here is what you need to do:

 

Edit /modules/gsitemap/gsitemap.php

go to line 196 (or search for $pages)

comment line pointing to /index.php and any other page you want out of your sitemap (a good idea is to comment out those pages that are restricted by your robots file)

 

 $pages = array(
  'authentication' => true,
  //'best-sales' => false,
  'contact-form' => true,
  //'discount' => false,
  //'index' => false,
  'manufacturer' => false,
  'new-products' => false,
  'prices-drop' => false,
  //'supplier' => false,
  //'store' => false
 );

 

NOTE: careful not to comment out the ");". move it on an empty line.

 

Generate your sitemap and submit it. Should work.

Link to comment
Share on other sites

Hi,

 

Sorry, no idea why you have so many errors. The solution I posted was for module version 1.7. Maybe you should update the module to this version?

 

What you could do is to check the errors and see what is duplicates are. Then you could figure out what is the reason and a possible solution.

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...