How to redirect sitemap.xml used depending on the domain?Undo edits
- by Agustín Sabater
How I can redirect sitemap.xml file access to different subfolders, if it can be reached from three different domains?
domain1/sitemap.xml - dominio1/es/sitemap.xml
domain2/sitemap.xml - dominio1/de/sitemap.xml
domain3/sitemap.xml - dominio1/uk/sitemap.xml
domain1, domain2, and domain3 target to the same folder.
Is it possible? How can I do this? Should do it with PHP ?
PS: The server is a linux running apache, the web platform is a wordpress.