I have several static sitemap (one sitemap for one language, ie sitemap_en.xml, sitemap_de.xml) and i want to deserve a final static sitemap.xml (http://example.com/sitemap.xml) which targets good sitemap depending on language (http://example.de/sitemap.xml --> sitemap_de.xml)
I am wondering how to do that in a react app, on a ssr way i can do
app.get('/sitemap.xml', function(req, res) {
res.sendFile('good_path_to_correct_sitemap.xml');
});
Maybe there is a better solution to handle several static sitemap in a multilingual website with multi domains
You need to centralize all of your sitemaps into one sitemap index, quoting:
But in your case, since each language is served on a different domain, you can do a cross submit, quoting: