开发者

Make index.html show instead of Default.aspx?

开发者 https://www.devze.com 2023-02-11 22:18 出处:网络
We are working on an aspx site that we would like to not show users until we are ready to launch. The Default.aspx seems to have more \"power\" over my index.html file. Al开发者_Python百科l I would li

We are working on an aspx site that we would like to not show users until we are ready to launch. The Default.aspx seems to have more "power" over my index.html file. Al开发者_Python百科l I would like to do is show the index.html by default and when working on the site, we can navigate to Default.aspx and work from there.


This is an IIS setting.

In IIS 7 or above, use the Default Document tool. In IIS 6 or below, use the "Default Documents" tab.


in the "Default Document" settings of your IIS you simply have to change the order of the "Default DOcuments" and make sure that index.html is above Default.aspx.

IIS6: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/dc6eb1b4-9028-4308-9935-52b64edfad36.mspx?mfr=true

IIS7: http://technet.microsoft.com/en-us/library/cc753615(WS.10).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消