Google released the "make ajax application crawler" Specification. For details, see: http://code.google.com/web/ajaxcrawling/docs/specification.html
This specification makes sense for the development of ajax applications.
Two concepts are most important:
Pretty-url and uugly-url, which are defined by google as follows:
- Pretty URL:Any URL containing a hash fragment beginning
!
, For example,www.example.com?myquery#!key1=value1&key2=value2
- Uugly URL:Any URL containing a query parameter with the key
_escaped_fragment_
, For example,www.example.com?myquery&_escaped_fragment_=key1=value1%26key2=value2
.
In my understanding, pretty is the visible url of users on the page, while urlg is the url specially provided for google crawlers.
The main suggestion is that when developing ajax applications, we should pay attention to the url expression. If we use pretty-url correctly, crawlers will be able to parse this url and become uugly-url, we can also initiate
Ajax requests have the same effect.
For example,
Www.joy.cn/video/play? 3#Load = full. Click this link and we will initiate an ajax request for www.joy.cn/video/play%3&load%full
Www.joy.cn/video/play? 3#Load = simple. Click this link and we will initiate an ajax request for www.joy.cn/video/play%3&load%simple
In this way, the ajax request can return different contents. However,#The content will not be sent to the server, so the two connections are the same for the search engine (www.joy.cn/video/play? 1
), The SEO effect is lost.
Google's new specification solves this problem, but it is currently only valid for google crawlers.
How can this problem be solved? Next let's continue ....
In the specification, replace "#" "#! ", It becomes the so-called pretty-url of google, it can meet its requirements.
Www.joy.cn/video/play? 3 #! Load = full. Click this link and we will initiate an ajax request for www.joy.cn/video/play%3&load%full
Www.joy.cn/video/play? 3 #! Load = simple. Click this link and we will initiate an ajax request for www.joy.cn/video/play%3&load%simple
For google crawlers, such a link is converted
Www.joy.cn/video/play=3&_escaped_fragment_?load=fulland
Www.joy.cn/video/play=3&_escaped_fragment_?load=simple
When two different search addresses are finally searched through google.com, they are still www.joy.cn/video/play%3 #! Load = simple.
Finally, paste a flow chart: