Create a sitemap.xml programmatically for a multi-language / multi-domain site on the fly
snippet in htaccess

Create a sitemap.xml programmatically for a multi-language / multi-domain site on the fly

user993

RewriteRule ^sitemap\.xml$ sitemap.php [L]