Same Ini File for 2 IIS instances

Topics: Developer Forum, User Forum
Apr 5, 2012 at 11:34 AM

HI,

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:

  1. redirect "http://www.site1.com/sitemap.xml" to "http://www.site1.com/folder1/folder2/folder3/Sitemap.xml"
  2. 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.