On the 301 and 302 pairs of influence and nginx configuration seo

301 permanent redirect - on SEO-friendly

  Use a 301 redirect to permanently redirect page. "Permanent" means that the word redirect page of all weights will be delivered to the point page.

  If we address the use of a jump, then jump method 301, PageRank and other search engine will the old address to the new address, and completely discarded the original old address in the search engine index database.

302 temporary redirect - on SEO unfriendly

  302 redirect, generally do temporary jump was temporary, the use of the process will be more common, but you do not use too many 302 redirects in the use of the process,

  Because search engines will consider new jump url is temporary, with too much, it may cause down the right treatment, this is a place we have to go to pay attention, do not use more because of the 302 redirects , which led to our site is down the right.

  302 redirect will not re-quality redirects the ownership is transferred to point to the page. Redirect page will retain its page rank, traffic and page permissions value. And points to the right page will not accumulate any page weight.

  Incorrect use of 302 redirects is very dangerous. This can seriously damage your site's search engine visibility.

 

Configuration About nginx 301 302 jumps.

301 Jump settings:

server {
listen 80;
server_name aaa.com;
rewrite ^/(.*) http://bbb.com/$1 permanent;
access_log off;
}

302 Jump settings:

server {
listen 80;
server_name aaa.com;
rewrite ^/(.*) http://bbb.com/$1 redirect;
access_log off;
}

Guess you like

Origin www.cnblogs.com/shichangchun/p/11653487.html