Home > Net >  Domain name binding file by default
Domain name binding file by default

Time:11-13

2008 system IIS configuration
.aspx project
The domain name www.abc.com
If the time of this domain name to open the defaults to level 2 directory specified file
Enter the domain name www.abc.com is www.abc.com/a/index.aspx open

CodePudding user response:

IIS casually to specify a default document aspx files, such as the default. Aspx, then the default in the web root directory. The aspx, in default. Aspx file to write the following code
<%
The response. Redirect (" a/index. Aspx ")
%>
Or
<script> Window. The location. Href='https://bbs.csdn.net/topics/a/index.aspx'; </script>
Would you please?

CodePudding user response:

Set the URL forwarding domain management

CodePudding user response:

reference, on the third floor of the 1st floor response:
IIS casually to specify a default document aspx files, such as the default. Aspx, then, are the default in the web root directory. The aspx, to write the following code in default. Aspx file
<%
The response. Redirect (" a/index. Aspx ")
%>
Or
<script> Window. The location. Href='https://bbs.csdn.net/topics/a/index.aspx'; </script>
Would you please?

Code processing has multiple hops in IIS positioning function has a domain name, use the use the IIS

CodePudding user response:

How no one replied to that?

CodePudding user response:

File redirection, url will follow the file path, domain forwarding, will not change the url, both can, see his needs,
  • Related