Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the influence of 301 jump on website ranking

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about how to analyze the impact of 301 jump on website ranking. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

301 redirects are usually used to change domain names on websites and to maintain link unity. For example, your original domain name www.a.com is now changed to www.b.com. After using 301 jump, the access to www.a.com/about.html will automatically become www.b.com/about.html. The importance of 301 jump to website ranking is described below.

Some time ago, a customer's station was optimized for about a month, and the ranking of more than a dozen keywords has been very good. Later, all the rankings disappeared suddenly after the collection was stable. (because there are too many websites on hand, some details don't pay too much attention to. ) I carefully analyzed the reason. * * through site:xxx.com 's search without host header, it was found that 301jump was not set (none of my colleagues in the design department understood this, and I thought they would set these up, ah). As a result, the snapshot of xxx.com is newer than that with www, and contains a lot of duplicate url. Both the outer chain and the inner chain point to www.

* 301 jump is set, and all rankings return to normal on the third day.

It is suggested that it is necessary for everyone to check whether the 301 has been set up (the master does not need to see, you all know), as for the importance of 301, we can Baidu, here will not be repeated.

Here is an excerpt of the code for setting 301 for the convenience of beginners:

301complete jump code collection (ASP | PHP | JSP | .NET)

1. 301 setting under IIS

Internet Information Services Manager-> Virtual Directory-> Redirect to URL, enter the target URL to be redirected, and select * redirect for Resources.

2. 301 turn code under ASP

3. 301 turn code under ASP.Net

Private void Page_Load (object sender, System.EventArgs e) {Response.Status = "301Moved Permanently"; Response.AddHeader ("Location", "http://www.xxx.com/");})

4. 301 turn code under PHP

Header ("HTTP/1.1 301 Moved Permanently"); header ("Location: http://www.xxx.com/"); exit ())

5. 301 turn code under CGI Perl

$Q = new CGI; print $Q-> redirect ("http://www.xxx.com/");"

6. 301 turn code under JSP

7. 301 turn code under Apache

Create a new .htaccess file and enter the following (mod_rewrite needs to be enabled):

1) transfer domain name without WWW to domain name with WWW

Options + FollowSymLinks RewriteEngine on RewriteCond% {HTTP_HOST} ^ xxx.com [NC] RewriteRule ^ (. *) $http://www.xxx.com/$1 [Lmaine Renew301]

2) Redirect to a new domain name

Options + FollowSymLinks RewriteEngine on RewriteRule ^ (. *) $http://www.xxx.com/$1 [Lmaine Renew301]

3) use the rule to turn 301 to achieve pseudo-static.

Options + FollowSymLinks RewriteEngine on RewriteRule ^ news- (. +)\ .html$ news.php?id=$1

Redirect an address like news.php?id=123 to news-123.html

8. Configure 301U in vhosts.conf under Apache

To achieve URL normalization, SEO usually transfers a domain name without WWW to a domain name with WWW. Vhosts.conf is configured as follows:

ServerName www.xxx.com DocumentRoot ServerName xxx.com RedirectMatch permanent ^ / (. *) http://www.xxx.com/$1 above is how to analyze the impact of 301jump on website ranking shared by Xiaobian. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report