Skip to content

Instantly share code, notes, and snippets.

@pixelbrackets
Last active December 12, 2015 04:38
Show Gist options
  • Save pixelbrackets/4715215 to your computer and use it in GitHub Desktop.
Save pixelbrackets/4715215 to your computer and use it in GitHub Desktop.
Combine several language dependend sitemaps using EXT:dd_googlesitemap in TYPO3
#RewriteRule ^sitemap.xml$ /?eID=dd_googlesitemap [L]
RewriteRule ^sitemap_de.xml$ /?eID=dd_googlesitemap&L=0 [L]
RewriteRule ^sitemap_en.xml$ /?eID=dd_googlesitemap&L=1 [L]
#Sitemap: /sitemap.xml
### if you want to use »autodiscovery«, then use one sitemap.xml only and add all child sitemaps into a text file (see example below), but adding each sitemap to robots.txt should be enough
Sitemap: /sitemap_de.xml
Sitemap: /sitemap_en.xml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.solarwatt.de/sitemap_de.xml</loc>
</sitemap>
<sitemap>
<loc>http://www.solarwatt.de/sitemap_en.xml</loc>
</sitemap>
</sitemapindex>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment