我正在使用asp.net 4.這可能是更多的IIS問題。.NET IIS默認爲index.html
說我的網站有子網站文件夾下的子站點,例如:
www.qinc.com/subsite/index.html
我喜歡做的卻是讓用戶鍵入
www.qinc.com/subsite
,並有頁轉到到www。 qinc.com/subsite/index.html默認與必須鍵入index.html。
這樣做的最好方法是什麼?
我已經在我的web.config這樣的事情,但我怎麼可以把它應用到子網站?:
<defaultDocument>
<files>
<clear />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="httpredirect.htm" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
但我認爲這是做它的主網站www.qinc。 com與www.qinc.com/subsite的子域名。有沒有辦法讓它將它應用到子網站?
什麼版本的IIS? – Gary
IIS 7是我的IIS –
如果你去'www.qinc.com/subsite'會怎麼樣? – SLaks