Search code examples
typo3typo3-7.6.xxml-sitemap

Typo3 - dd_googlesitemap multiple sitemap


I am using following two extension:

dd_googlesitemap and dd_googlesitemap_dmf

I have two Sitemaps:

Default pages:

index.php?Eid=dd_googlesitemap

My extension:

index.php?Eid=dd_googlesitemap&Sitemap=DMF&selector=myExtSelector

I need only one sitemap. (for google webmaster tool)

https://webmasters.googleblog.com/2006/10/multiple-Sitemaps-in-same-directory.HTML that doesn't work.

Error:

XML-Verarbeitungsfehler: nicht wohlgeformt
Adresse: http://www.mydomain.de/sitemap.xml
Zeile Nr. 9, Spalte 55:<loc>http://www.mydomain.de/?eID=dd_googlesitemap&sitemap=dmf&selector=myExtSelector</loc>

Thank you :-)


Solution

  • Look at line 9, character 55 and you'll probably end up near the '&' in the URL. In XML an ampersand is used to start an entity (and a semicolon ends it). In this case the characters following the '&' should be a valid entity name. This is of course not the case here, so you must encode the ampersand.

    <loc>http://www.mydomain.de/?eID=dd_googlesitemap&amp;sitemap=dmf&amp;selector=myExtSelector</loc>