I’m using MODX for multi domain. So one CMS serving multiple domains.
For all websites, I want to have a sitemap.xml but when I use the GoogleSiteMap plugin, I see the same sitemap on the second domain.
Step to reproduce
Install multi domain on your MODX install.
Install GoogleSiteMap plugin
Add a page calles sidemap, use a empty page, make it xml
In the content field add [[!GoogleSiteMap]]
domain2.com/sitemap.xml contains the same content from domain1.com
domain1.com/sitemap.xml show pages from domain1
domain2.com/sitemap.xml show pages from domain2
MODX Revolution 2.7.1-pl
Try to use the following call:
If you don’t necessarily want to use the extra and don’t have too frequently sites added, you could also use an online sitemap generator like this one.
It works, thank you Jako! Danke schön. Please YJ Tso & Garry Nutting, can you add this in the documentation of the plugin?
It looks like a known issue, that is somehow forgotten: https://github.com/modxcms/GoogleSiteMap/issues/9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.