Previously did not pay much attention to 301 redirects, first because there is no website to redirect, the second for the domain name without www I am used to forward to the domain with www . However, after a storm, many service providers have not provided forwarding services. Although Ename can now enjoy free forwarding services, it cannot be forwarded to the MX record parsing with www. MX resolution friends are also a big annoyance.
And some domain names are in foreign countries, the forwarding is not used, and only 301 permanent redirects can be made. Otherwise, the search engine treats the station without www and the station with www separately, but we are used to using The domain name of www is gone. I read some tutorials on the network, and finally got the 301 permanent redirection settings on the IIS server according to my own practice. The implementation method is as follows: 1. Create a new site, corresponding to the directory such as E:\\wwwroot\\301web. Only one file is required in this directory, namely index.html or add a 404.htm. Bind the domain name to be redirected. 2. In IIS, select the site we just created, right click, properties, home directory, select redirect to, enter the URL such as: http://www.xxxx.com, and note the following The permanent redirection option for the resource. As shown below: 3. At this point, we have completed the work of redirecting the domain name xxx of xxxx.com to www.xxxx.com. Note the problem: “ Enter the exact URL (X) above; this option is not recommended. The result of the unselection is: When the input xxxx.com is transferred to www.xxxx.com, when xxxx.com/sanwen/suibi/is entered, it is transferred to www.xxxx.com/sanwen/suibi/. The result of the selection is: When you type xxxx.com or xxxx.com/sanwen/suibi/you will go to www.xxxx.com. Ok, if you just want to transfer the domain name without www to www or other unused domain names to the domain name you are using, this is fine. But if the domain you want to have already done the website and want to pass the weight to the new website, you can refer to the following method: The first step is the same as above, mainly the second step, as shown in the figure: Note the part of the red font, in the redirect to The $S$Q character is added after the address, which is written as http://www.xxxx.com$S$Q. “ Enter the exact URL(X)” this option is also checked. For the $S$Q character, explain here: $S Pass the suffix of the requested URL to the new URL. The suffix is the portion of the initial URL that is retained after the redirected URL is replaced. If the EXACT_DESTINATION flag is not set, the name of the resulting target URL will have the name of the requested file (as the folder name) and the file name itself. $Q passes the parameters in the initial URL (such as the querystring parameter) to the new URL, including the question mark (?). If you do not add the $S$Q character, the 301 of the inner page will jump to the first page. The purpose of adding the $S$Q character is that the inner page can also jump to the corresponding inner page of the new domain name. Well, this completes the setting of 301 permanent redirection. After setting it, it is best to test whether it returns 301 value. Baidu's response to 301 is not as slow as imagined, and xxxx is included the next day. Com this page, the latest snapshot. Of course, the content of the snapshot is the content of www.xxxx.com, not the content of index.html in 301web.
When using Windows NT 4.0, IIS has become a popular web server platform. IIS 4.0 is released
The Internet era needs to record too many passwords, accidentally may forget, if the server password
Windows system, you must set up IIS support Rewrite. Then start configuring IIS Rewrite1,
The steps to create a Windows NLB cluster are as follows: 1. Install the network load bal
Modify the AD user password with the password modification function of IIS6.0
Win7 uses iis to build a web server to realize information browsing resource sharing
How to remotely access IIS after Win7 installs IIS
IIS time format setting problem (ASP.net date format is wrong)
Improper setting of IIS causes the website to frequently drop
The main factor affecting IIS performance
How to set up a router on the external network to access the local IIS site
How to use IIS to establish a high-security Web server
Easily implement Web server isochronous automatic backup
VPS server tips and precautions (windows version)
Adjusting IIS settings to simplify Windows Server client uploads
How to cleverly hide the WinXP taskbar icon
Win8 system prompts no solution to install flash plugin problem
Netizens share the system time after upgrading. Win10 is still free (with video)
Win8 Touch Gesture Demo Guide Daquan: The World is at your fingertips
Do you use the Linux command line?
Win8 DT/NB model Metro has a white cross icon in the lower right corner.