Link to home
Start Free TrialLog in
Avatar of hotex
hotex

asked on

IIS 7 default document

Dear Experts,

How to set different default document for different domain that point to the same folder?
for example.

Domain www.example.com 
default document: index.aspx
point to folder: c:\websites\example\

Domain test-1.example.com
default document: index.aspx?id=test1
point to folder: c:\websites\example\

Domain test-2.example.com
default document: index.aspx?id=test2
point to folder: c:\websites\example\

Please advise how to make above case works, as the iis7 setting use the shared web.config for default document.

Thank you.
Avatar of tanujchandna
tanujchandna
Flag of India image

Hi,

You have to click on website name in IIS7 -> Double Click on Default Document -> Click on index/default page which you want to set -> Set it on top using Move UP button in the right

You have to these steps for all the websites.
best way of browsing with other defaults is

follow the url:
1: http://www.example.com 
2: http://www.example.com/index1.aspx
3: http://www.example.com/index2.aspx

you can all three links from above urls.

thats all
ASKER CERTIFIED SOLUTION
Avatar of Springy555
Springy555
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial