Domain names without WWW and without WWW are not the same thing: the former is called the root domain name, and the latter is the second-level domain name of the former. For a long time, people have become accustomed to bringing WWW when visiting
Believe that a lot of webmaster friends have such problems appear. That is, the domain name with the WWW prefix and the top-level domain name without the WWW prefix are different. This problem is mainly due to the search engine for the top-level
: This article describes how to redirect a domain name from www to non-www, Apache, and Nginx2. For more information about PHP tutorials, see. Background: jump from www to non-www.
Both http://www.jiutianniao.com and http://jiutianniao.com are
Permanent page removal (301 redirects ) is a very important "auto-steering" technology. One of the most feasible ways to redirect URLs. When a user or a search engine makes a browse request to the Web server, one of the status codes in the header
From a search engine optimization perspective, the current 301 redirect is the most feasible way to redirect the site directory changes. After you change the address using 301 Redirect, the search engine will only index the new address, but also the
Background: www jump to non-www.
Both http://www.jiutianniao.com and http://jiutianniao.com can be accessed.
However, want to redirect the www to non-www, the input is more simple, so that the search engine also treat them as the same 1 sites.
2
1, IIS under 301 settings Internet Information Services Manager-> virtual directory-> to a URL, enter the destination URL that needs to be redirected, and select Permanent redirect for resources. In IIS, you can also implement features such as
Apache. the 301 redirection in htaccess enables the website to be collected from a domain name without a www domain name: create a file redirect in the root directory. htaccess with Options + FollowSymlinksRewriteEngineonRewriteCond % {HTTP_HOST} ^
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
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.