Indexing AJAX sites

The Yandex robot can index an AJAX site if each page of the site has an HTML version.

Attention. As a rule, to specify the preferred version for the robot to use in search results, you need to add to the HTML code of the page that shouldn't be included in the search a link to the appropriate page with the rel= "canonical" attribute.

This attribute may prevent the robot from indexing the HTML version of an AJAX page correctly, so don't use it for pages that should be included in the search.

You make the HTML version of the page known to the robot using:
A meta tag
Add the meta name="fragment" content="!" meta tag to the AJAX page code. As a result, the HTML version of this page should be available at the URL with the added parameter ?_escaped_fragment_= (the parameter value is empty). For example:
Tip. Don't place any meta tag in the HTML version of the site pages, or else the robot won't be able to index it.
A parameter in the page URL

Add the #! parameter to the AJAX page URL. As a result, the HTML version of this page should be available at the address where the #! combination is replaced with the parameter ?_escaped_fragment_=. For example,!blog should change to

Tip. Links with #! can also be used in the site map.

For the robot to learn about your site pages faster, send the HTML versions of the pages for reindexing. When the HTML pages appear in the search results, the links will redirect users to the AJAX pages of the site.

If the pages don't appear in the search results for a long time or were excluded from them, or if you have other questions about indexing of AJAX sites, fill out the form below: