How to redirect sitemap.xml used depending on the domain?Undo edits

view full story

http://serverfault.com – How I can redirect sitemap.xml file access to different subfolders, if it can be reached from three different domains? domain1/sitemap.xml -> domain1/es/sitemap.xml domain2/sitemap.xml -> domain1/de/sitemap.xml domain3/sitemap.xml -> domain1/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. (HowTos)