How to redirect sitemap.xml used depending on the domain?Undo edits
Posted
by
Agustín Sabater
on Server Fault
See other posts from Server Fault
or by Agustín Sabater
Published on 2012-06-04T08:29:50Z
Indexed on
2012/06/04
10:44 UTC
Read the original article
Hit count: 276
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.
© Server Fault or respective owner