Вопрос

I'm trying to understand Google AJAX-crawling.

Say, I have an HTML page like this at example.com:

<title>My Page</title>
<a href="#!foo=bar">Some link</a>

When crawling the #!foo=bar link, google will fetch example.com?_escaped_fragment=foo=bar. As a response to this I will serve the following HTML:

<title>My Other Page</title>
<a href="#!blah=zap">Another link</a>

Now the question is, what will Google think of the #!blah=zap link? I see two possibilities:

  • Google will treat the URL as example.com?_escaped_fragment=blah=zap and will successfully fetch the page.

  • Google will see that this relative URL really resolves to example.com?_escaped_fragment=foo=bar#!blah=zap and will fail to fetch the page I want him to.

So which way might it be?

PS. Is there some way to test this? I've been using the "Fetch as Google" service, but it doesn't tell me how it will crawl the links it finds on the page.

Это было полезно?

Решение

Did you check : Full specification of _escaped_fragment_ ?

Regarding your question, I'll suggest that Google will interpret as : "Google will treat the URL as example.com?_escaped_fragment=blah=zap and will successfully fetch the page."

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top