How to set startup page for a specific folder?
Asked
Active
Viewed 3,918 times
3 Answers
1
First you have to add web.config file in folder and in your web.config
add this rule
<defaultDocument enabled="true">
<files>
<clear/>
<add value="index.aspx"/>
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/>

Anant Dabhi
- 10,864
- 3
- 31
- 49
1
ok i found solution.
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Pages/Default.aspx"/>
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/>

Meysam Savameri
- 558
- 2
- 12
- 30
0
Just name it default.aspx and that's it.
UPDATE:
May be you check if default.aspx in defined in IIS as default document or not.
Check links below. It'll guide you to check if settings of IIS are OK or not.
http://www.iis.net/learn/web-hosting/web-server-for-shared-hosting/default-documents
http://www.iis.net/configreference/system.webserver/defaultdocument
Setting Default WebPage in IIS 7.5
Hope it helps
-
It'll also work on IIS 7.5. May be you need to check the settings of iis. I'll update my answer in 2 minutes. – Afshin Gh Sep 15 '12 at 16:16