because of the need, has been set for IIS7.5 two domain pseudo static, but has not been found, there is also ASP.NET setting, through exploration, finally completed, is actually very simple, I teach you how to set up a step by step.
1, domain name settings
this does not say more, everyone knows, that is, domain name resolution management in the "*.xxxx.com" point to the corresponding server IP, such as my "*.xue163.com" point to my current server IP.
two, server IIS, set
, in order to make the parsing valid, definitely needs a default site that does not bind any domain name, such as my:
then install the URL rewrite, this plugin is provided by Microsoft IIS built-in function, need to choose the installation, click the download address: http://s.xue163.com/download/rewrite.rar can be installed, restart the server. Then we began to enter the theme. Three, two domain name pseudo static configuration, installed, URL rewrite plug-in, you can see in the IIS web site panel:
click enter URL rewrite panel:
next, we’ll click the add rule on the right and select the default blank rule:
click OK, enter the add specific rules, here is to configure two level domain name pseudo static, please see the picture shows:
, and one of the most important places is the condition. How do you fill it out? Click the "conditional" drop-down to see the following picture:
click add, and fill in as shown below: