Q nginx

Q nginx

  1. 301 Jump meaning

Permanent removal of a page, often called 301 jump, also known as 301s, 301 turn. Means that when a user clicks on a URL, through technical means, to jump to a specified website.

  1. Why do 301 jumps website

  • When you need to replace the domain or multiple domain names point to the same site, we suggest using a 301 redirect, if JS jump, MATAREFRESH or 302 turn, so it is vulnerable to search engine penalties.
  • When you use a 301 redirect to point to the new address of the domain name, search engines index only the new URL, but also under the original external links will be transferred to the new address of the old address, so as not to rank websites because the URL The change affected. Similarly, when using a 301 permanent redirect command to have multiple domain names point to the main domain site, the site will not have any adverse impact rankings.
  • 301 redirects can promote the search engine optimization results from a search engine optimization perspective, 301 redirects to redirect URLs is the most viable a way. When the site's domain name is changed, the search engine to index only the new URL, but also under the original external links to the old address will be transferred to the new address in full, so as not to rank websites because of a change of address and receive the slightest impact. Similarly, when using a 301 permanent redirect command to have multiple domain names point to the main domain site, the site would not have a negative impact on any ranking
  1. 301 Jump advantage

  • 301 steering transmission weights
Go to page A to page B with a 301 redirect, search engines can be sure Page A permanent change in address, or that does not actually exist, the search engine will put the page B as the only valid goal. This search engine is only recommended steering method does not give rise to doubts, most importantly, the web page A cumulative weight is spread page B. 
Google is currently doing 301 turn will transfer most of the weight of the URL, but not one hundred percent weight. Baidu will transfer all the weight. Google to identify 301 of the reaction, the weight transfer is completed, take 1-3 months. Baidu is more conservative treatment of 301, old and new URL will exist in the database for a long time, often seen doing a 301 turn of the year also appears in the URL Baidu results.
  • 301 redirects can promote the search engine optimization results
From a search engine optimization perspective, 301 redirects to redirect URLs is the most viable a way. When the site's domain name is changed, the search engine to index only the new URL, but also under the original external links to the old address will be transferred to the new address in full, so as not to rank websites because of a change of address and receive the slightest impact. Similarly, when using a 301 permanent redirect command to have multiple domain names point to the main domain site, the site would not have a negative impact on any ranking
  • 301 redirect the intention is to avoid the original traffic is lost
There is no doubt that the owners do not care SEO practice is actually a 301 redirect traffic to avoid the loss of the original old domain name; win the network also had the same "experiment" and eventually also make it difficult to analyze the old domain Baidu weights or high the new domain name high weight, but the old domain also had a history of competition with the new domain name (not two oh ranking in the search results, but Baidu certain keywords so that only an old domain name appears in the search results, new This domain name is really any keyword search results ranking can not see it);! after that time to the Master a signal is always dependent on the old domain 301 redirect, 301 redirect the old domain name will result in the cancellation jump through after a week of traffic loss, Baidu to recover; Baidu has been promoting SEOer consider the most immediate objective sorting algorithm is the user experience, therefore, is not a 301 redirect SEO best practices or steering weight distribution, and its intention is to avoid the original flow loss of the old domain
  1. How to set up 301 Jump

  • nginx configuration 301 Jump
server {
    listen 80;
    server_name www.cqado.com.cn;
    #rewrite ^/(.*)$ https://www.cqado.com.cn/$1 redirect; 302跳转
    rewrite ^/(.*)$ https://www.cqado.com.cn/$1 permanent; 301跳转
}
server {
    listen 80;
    server_name www.cqado.com.cn;
    #rewrite ^/(.*)$ https://www.cqado.com.cn/$1 redirect;
    rewrite ^/(.*)$ https://www.cqado.com.cn/$1 permanent;
}
  • How to set up 301 jumps when using asp conduct production site
<%@Language=VBScript%>
<% Response.Status="301MovedPermanently"
Response.AddHeader "Location","106/"
%>
  • How to set up 301 jumps when using .net conduct production site?
<scriptrunat="server">
privatevoidPage_Load(objectsender,System.EventArgse)
{
Response.Status="301Moved Permanently";
Response.AddHeader("Location"","106/");
}
  • How to set up 301 jumps when using php website were produced?
header("HTTP/1.1301MovedPermanently");
header("Location:106/");
exit();
  • Web site production process of how to set up 301 jumps under IIS environment
Internet Information Services Manager -> Virtual Directory -> redirected to the target URL URL, enter the desired steering, and select "A permanent redirection of resources" can be.

Guess you like

Origin www.cnblogs.com/xiuxingzhe2/p/11836727.html