Link to home
Start Free TrialLog in
Avatar of justaphase
justaphaseFlag for Portugal

asked on

window.history.pushState seo (search engine)

Hello Experts,

When i use the HTML5 window.history.pushState to define a new url without refreshing the page, do the search engines crawl those URLs?
Would be great if they do, because that way i could change the data inside my app without reloading the page with ajax and at the same time define a link of that page to the googlebot (or other SE crawler)..

Thx in advanced,
Miguel
Avatar of Lucas Bishop
Lucas Bishop
Flag of United States of America image

Yes, googlebot can crawl these urls, see here:
https://developers.google.com/webmasters/ajax-crawling/docs/getting-started

However, you don't want to rely completely on googlebot crawling dynamically generated pages on your site for indexing purposes. Instead, you should have a sitemap defined and submitted via webmaster tools, which will be the authority on all the links on your page.
Avatar of justaphase

ASKER

I already seen that.. i don't think it crawls normal urls like this "http://www.mywebpage.com/index.php?myvalue=12&mysecondvalue=45"

Only with #! hash fragment and then i have to make some voodoo snapshot that i didn't quite understand...
ASKER CERTIFIED SOLUTION
Avatar of Lucas Bishop
Lucas Bishop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You made my day!!

thx! :)
Miguel