How to set a subsite for a site

Source: Internet
Author: User
1. The first step:

First we create two MVC projects, publish to 2 specified folders such as D:\ct1 and D:\ct2

2. Step Two:

Open IIS, as

Right-click Site Add site, add your site name Ct1, specify the path to your site D:\ct1, specify the application pool, select the port number 80. Click OK to build the site Ct1.

3. Step Three:

Start setting up subsites, such as:

Right-click to add a virtual directory, such as:

Alias is the name of the subsite, the physical path is D:\ct2

This will generate a Ct2 file under the CT1 website, we right click on this ct2, converted into an application, so that our sub-site is completed. Such as:

So we can access the main site through Http://localhost:80/home/index.

Accessing subsites via Http://localhost:80/ct2/home/index

This article may not be very perfect, I hope you criticize correct

How to set a subsite for a site

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.