iis7/iis7.5 two level domain name pseudo static setting method

Source: Internet
Author: User
Keywords Level two domain name pseudo static

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Because the need, has been looking for IIS7.5 two domain name pseudo static setting method, but has not been found, and some are asp.net set, through my groping, finally completed, in fact very simple, below I step-by-step to teach you how to set.

First, the Domain name setting

This is not much to say, we all know, is the domain name resolution management in the "*.xxxx.com" point to the corresponding server IP, such as mine is "*.xue163.com" point to me now server IP.

Second, server IIS settings

In order to make the lack of parsing effective, you definitely need a default Web site that does not bind any domain names, such as mine:

(Click to view larger image)

  

Then install the URL rewrite plug-in, this plugin is provided by Microsoft, IIS features, you need to choose to install, you can click the address download: Http://www.xue163.com/download/rewrite.rar installed, Reboot the server. Next we start to go to the topic. 三、二级 domain name pseudo static configuration installed after the URL rewrite plugin, you can see in the IIS Web site panel:

(Click to view larger image)

  

Click to enter URL rewrite panel:

(Click to view larger image)

  

Next we click "Add Rule" on the right and select the default "blank rule":

(Click to view larger image)

  

Click OK, go to add specific rules, here is the configuration level two domain pseudo static, please see the picture description:

(Click to view larger image)

  

There is a most important place, is the condition, that how to fill in, click the "condition" drop-down, you can see the following figure:

(Click to view larger image)

  

Click Add and fill in the following figure:

(Click to view larger image)

  

Xue163\.com in the pattern, please change your domain name, then click OK, now all things are completed, please point to the right of the "application" to complete the first step, this step is to convert the two-level domain name to the corresponding level two domain name directory content, complete this rule added, you can now test whether the success, such as input: img.xue163.com, the result is rewritten now address should be: http://img.xue163.com/img.xue163.com. Understand, the next is easy, is not the need to img this variable, and then add a rule chant, follow the steps above, but this time do not need to add conditions, the following figure:

(Click to view larger image)

  

The rule is to rewrite the address of the first step, {r:1} is a variable, is also a two-level domain name prefix, through this step can be arbitrary to write rules to meet different needs, has been completed, in fact, we do not think is the first step, how to obtain the prefix of the level two domain name, after easy to get, Rewrite it all right. No friends please add my qq:20127430, or visit http://www.xue163.com view.

Related Article

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.