How to Do seo well for ajax applications

Source: Internet
Author: User

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:

 

Related Article

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.