The HTTP status code During redirect is generally one of the 200,301,302 status codes. The following lists the status codes and then explains the differences between them:
Jump of Status Code 200:
1. <meta http-equiv = "refresh" content = "3; url = default. aspx"/>
2. server. Transfer ("default. aspx ");
3. urlrewrite-strictly speaking, this is not a jump, but a URL "spoofing"
4. <A> -- I don't know if anyone will comment on this label as a jump.
Jump in status 302:
Response. Redirect ("default. aspx ");
Status 301 and redirect: Response. Status = "301 moved permanently ";
Response. addheader ("location", "http://www.cnblogs.com/dingxue ");
For users, each jump is not much different and can achieve the goal. But for Seo, these differences are far away. The third use of State 200 is good for Seo, but the first and State 200 of State 302 have basically no benefit, then, unfortunately, the 302 jump was used in mantai Street.
A long time ago, at that time, the search engine was still silly. Many people used Meta Refresh to obtain powerful Seo results. Later, it was directly killed by the search engine. After that, many people started to use 302 as the stepping stone and were also killed. For example, the two famous cases: business.com and BMW. Spoofing the search engine has serious consequences. So few people do SEO on the jump, but some inevitable jumps still need to exist. How can we prevent these jumps from negatively affecting them? So someone studied 301 redirection.
I forgot to blind some beginners. The three status codes are described as follows:
200 normal status, nothing happens, normal page browsing is generally 200
301 permanent transfer (permanently moved), Seo is required, will transfer the PR and other information of the old page to the new page
302 temporary transfer (temporarily moved), a common trick, is also the SEO most likely to be sentenced to fraud
By the way, many websites may have a custom error page when an error occurs, but unfortunately many people forget this status code, an error page is usually 200, which is indexed by the search engine. However, when 404 of different URLs jump to this page, a large number of duplicate pages are considered, the worst thing is that there are too many 404 errors, which are considered invalid in the site and too many Duplicated content. Therefore, when making a custom error page, remember to return a 404 error.
Depressed, I don't know how to write it. Stop it. I want to comment on Seo or similar technologies. I am not getting started yet. I am in urgent need of your advice. Thank you.