I have 2 IIS instances hitting on the same physical Folders.The Domain name of the 2 sites are different.
Example: http://www.site1.com and http://www.site2.com
I need a rewrite rule to do the following:
- redirect "http://www.site1.com/sitemap.xml" to "http://www.site1.com/folder1/folder2/folder3/Sitemap.xml"
- redirect "http://www.site2.com/sitemap.xml" to "http://www.site2.com/folderA/folderB/folderC/Sitemap.xml"
Note that they both share the same IniFile.
http://www.site1.com/sitemap.xml and http://www.site2.com/sitemap.xml do not exist. they are not physical files.
"http://www.site1.com/folder1/folder2/folder3/Sitemap.xml" and "http://www.site2.com/folderA/folderB/folderC/Sitemap.xml" are physical files
How do i do the rewrite rule. I tried many things but in vain.