Domain name resolution English name: DNS (Domain Name resolution)
How can I view my website content after I register a domain name? In a professional term, it is called "domain name resolution ".
As mentioned in related terms, domain names and
When we build the station will be based on their own habits with the www or without the WWW domain name as the main domain name, for this point is not too much of a strict requirement is to use WWW or non-www domain name, but in foreign sites to see
I have never paid much attention to this blog jump problem. By accident, a friend said that my blog www.111cn.net and 111cn.net did not do 301. This is indeed the case. Although the main domain name 111cn.net is set in the blog background, when www.1
Friends who use ASP.net and follow the new technology may already know that the Response.redirectpermanent () method has been added in ASP.net 4.0 to achieve permanent redirection, and the effect of the method is clearly explained in the annotation:
This article introduces asp.net's implementation of 301 redirection without www domain name to domain name with www. It also includes various implementation methods, including php, asp, and apache.
Some friends may use the benzene method, and add
After setting up a website in the IIS environment, many friends habitually bind domain names with or without WWW to a website. In this way, although both domain names can be accessed, however, the weight is easily dispersed, resulting in reduced
Cainiao O & M notes: Configure Apache second-level domain name and WWW access, apache second-level domain name
In fact, www access is also a type of second-level domain name.
Modify the http. conf file
Add
ServerAdmin 879231132@qq.com
Apacherewrite redirection rules, rewrite regular expressions, second-level domain names point to first-level domain names, multiple domain names point to one domain name, IP to domain name first there is a linux server, there are four IP addresses
Some friends may use the method of comparing benzene, add Response.redirectpermanent method under each Controller. The simpler approach is to add the following code to the Global.axax.cs:
The code is as follows
Copy Code
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.