To increase the search engine friendliness of the website www.miaosha007.com, a 301 redirection is made to the website today, Redirect miaosha007.com to www.miaosha007.com
The solution is as follows:
Find the. htaccess file under the site
General webmaster know: A site to change the domain name or at the same time binding multiple domain names to do 310 redirect. Because 301 redirect can be the weight of the old domain name, PR, etc. passed to the new domain name. Some time ago the
Linux Nginx 301 Redirect Jump method Summary, there is a need for friends to refer to.
The first case: access to the AAAAAAA station directed to the BBBBBBBBBBB station
Copy Code code as follows:
server {
Server_naaaaaaame
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
301 Redirect is not unfamiliar, sometimes there is a need to redirect a directory whole to a level two domain name, or the top-level domain request without WWW is all redirected to the two-level domain name with www. If it is Apache, it needs to be
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
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
PHP Implementation 301 Permanent Redirect the domain name without www to the domain name with www, that is, baidu.com redirect to Www.baidu.comIf you only need to complete this function, the PHP code can be written like this:1PHP2 $the
In the previous analysis of my company's website keyword ranking disappeared mentioned (now from the company resigned), the company's website keyword ranking disappeared the most likely reason is 302 redirect, now can be determined, is because of 302
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:
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.