Issue with Two Index files in Classic ASP

frenz

New Member
I have Classic ASP Web application which is hosted on II7. Lets call it TestMain. This application has its Index page under root. Lets call it Index.asp. There is another application within TestMain ( the Folder is made as application in IIS) is created in IIS. The folder is named as TestSub. TestSub contains another Index page named as IndexSub.asp which is set as default file for the folder.Index.asp and IndexSub.asp contains code which simply redirects to Resource1.asp and Resource2.asp.Pls note Resource1.asp is there in separate Virtual directory( AutoVD) and Resource2.asp in under the Root directory of TestMain.Code in Index.asp\[code\]Response.Redirect("//" & "TestMain/AutoVD" & "/Resource1.asp")\[/code\]Code in IndexSub.asp\[code\]Response.Redirect("//" & "TestMain" & "/Resource2.asp")\[/code\]I need the application to Run differently when I type type\[code\]http://TestMain/Index.asp http://TestMain/TestSub/IndexSub.asphttp://TestMain/Index.asp works correctly and Redirects to **Resource1.asp** but for http://TestMain/TestSub/IndexSub.asp it aslo fetches **Resource1.asp**.\[/code\]The redirection is not happening to Resource2.asp instead its redirecting to Index.asp which in turn is fetching Resource1.asp.Any idea how I can fix this.
 
Top