Shhhh Posted January 26, 2012 Share Posted January 26, 2012 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 More sharing options...
Shhhh Posted January 26, 2012 Author Share Posted January 26, 2012 Help? Anyone? :/ Link to comment Share on other sites More sharing options...
tdr170 Posted January 26, 2012 Share Posted January 26, 2012 You can try to edit sitemap.xml and see if you can find the second enrty. Link to comment Share on other sites More sharing options...
pel024 Posted January 26, 2012 Share Posted January 26, 2012 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 More sharing options...
Shhhh Posted January 27, 2012 Author Share Posted January 27, 2012 Strange thing is that the second entry has different data compared to the first entry. I know it can be removed manually. That was what I wanted to avoid... Link to comment Share on other sites More sharing options...
Shhhh Posted January 27, 2012 Author Share Posted January 27, 2012 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 More sharing options...
x3n0m0rph Posted January 30, 2012 Share Posted January 30, 2012 Hi, I have the same problem and this is not very helpful... it takes out like 5 errors from my 302.. so I still have 297 errors. Any other ideas? .... Link to comment Share on other sites More sharing options...
Shhhh Posted January 30, 2012 Author Share Posted January 30, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now