When users go to my site, I want it to display:
http://example.com
and not:
http://example.com/default.aspx
How can i do this?
This is done from IIS:
You can also do this by setting some URL mappings. See here for more details .
It is possible (really encouraged) with IIS7, but the only way I know to do in IIS6 is with ugly urlmapping tricks
<system.web> <urlMappings> <add url="~/Default.aspx" mappedUrl="~/YourPage.aspx"/> </urlMappings> </system.web>
IIS, , " ".
- IIS, IIS Windows, " ". , index.aspx , .
admin script (vbscript) :
set node=getObject("IIS://LocalHost/W3SVC/1/Root") node.defaultdoc = "index.aspx" & "," & node.defaultdoc node.setinfo
in IIS->your site->right click->property->Default Document
IIS->your site->right click->property->Default Document
,
Source: https://habr.com/ru/post/1706815/More articles:How to make cross-platform language C ++ inline? - c ++Difference between CDDL (Sun OS License) and GPL - licensingUsing a variable with sed in a shell Script - shellAn event that does not appear in the Property Grid - c #C #: how to reference standard (T) and constructors in xml comments - genericsAdd sequential number to create / paste - Teradata - sqlProblems with KVO and Bindings using my own (not shared) NSUserDefaults object - objective-cHow can I mix layers with another coordinate system in OpenLayers? - mapLocation Flex CFF for FlexFusion - flexTortoiseSVN reassigns source folders - svnAll Articles