D
D
daMage2015-12-30 00:01:09
Google
daMage, 2015-12-30 00:01:09

How to index ajax content?

Hello. Can't figure out how to index ajax content. It seems that there is a standard that is already deprecated, but as far as I understand, Google is still crawling ajax. I slightly changed the code on the site, added a dump of all request parameters, if the test parameter is present. I go to the Google console, in the "View as googlebot" section, and paste the address image/title/400?test=1#!abc=123. There is no "_escaped_fragment_" in the screenshot. CHADNT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abcyu, 2015-12-30
@daMage

habrahabr.ru/post/254213
HashBang technology
In short:
this is a link like example.com/#!/cats/grumpy-cat, when the search robot sees #! it makes a request to the server at example.com/?_escaped_fragment_=/cats/grumpy-cat, i.e. replaces "#!" to "?_escaped_fragment_=", and the server should give the generated html to the search engine, identical to the one that the user would see on the original link. But if the application uses the HTML5 History API and does not use #! links, you need to add a special meta tag to the head section:
When this tag is seen, the search robot will understand that the site is running on ajax, and will redirect all requests to get the site content to the link: example.com/?_escaped_fragment_=/cats/grumpy-cat instead of example.com/cats/grumpy- cat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question