Baidu Website revision tool advanced rules URL replacement rules detailed

Source: Internet
Author: User
Tags regular expression

Web site with scale, business, the change of technology is unavoidable, but the website revision also has certain risk, especially the website link structure change is apt to be subjected to the search engine punishment, the light reduces the weight then is K, in order to minimize the risk, stationmaster generally through 301 permanent Redirect Technology carries on the new old link replacement , different search engines to 301 of the response speed is not the same, Google as the world's most mature search engine, responsive, and Baidu in this respect response is slower (a bit of the old feeling of stagnation), but recently Baidu finally launched the 301 revision tools, about the use of tools, Please see the Baidu Webmaster platform information,

Website revision notice? http://zhanzhang.baidu.com/wiki/106#1

How to submit website revision rules to Baidu? http://zhanzhang.baidu.com/wiki/106#2

How do I write a URL substitution rule in an advanced rule? http://zhanzhang.baidu.com/wiki/106#3

This article focuses on how to write the replacement rules, in fact, Baidu has provided two examples

From Baidu Rule description: #表示数字, * indicates any character,<> will replace its nearest string (* or # or XXX) with a string within <>

Here <> is the most important, "will be the nearest string to replace it with the string in <>", what is the most imminent?

is from the <> itself forward, until the emergence of * * <>, directly with the example provided by Baidu, or look at the picture to speak

  

Let me give you a few more examples

1. Replace example.com/ha/index-j1-s2-p3.html with example.com/ha/index-j1.html, how do you do it?

Answer: example.com/ha/index-j#-s<>#<>-p<>#<>.html here <> mainly plays a role of substitution

2. Replace example.com/ha/index-j1-s2-p3.html with example.com/ha/index-s2.html, how do you do it?

Answer: Example.com/ha/index -j<>#<>-s#-p<>#<>.html

At the same time, in the Baidu Webmaster platform, because only one rule can be added at a time, so add a rule to copy and paste 5 times, more cumbersome,

  

I also wrote a small tool can be very saving energy (to A5 hair article, how can not bring gifts?) (Can be edited in bulk in Excel, copied into text and reused),

  

Tools and source code can be downloaded, address

Http://www.5ajob.com/news/UploadFiles_7060/201212/2012122117133288.rar

I do not know why Baidu will use <> this way to make rules, instead of using more flexible regular expression, may be for our technical substandard grassroots webmaster to provide convenience

Merry Christmas (So long, right), this article by the Professional Agricultural talent job recruitment network of China's Agricultural talent network HTTP://WWW.5AJOB.COM/A5, welcome to communicate with each other.



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.