Solved

window.history.pushState seo (search engine)

Posted on 2015-02-23
4
142 Views
Last Modified: 2015-02-25
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
0
Comment
Question by:justaphase
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Lucas Bishop
ID: 40626202
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.
0
 
LVL 1

Author Comment

by:justaphase
ID: 40626809
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...
0
 
LVL 17

Accepted Solution

by:
Lucas Bishop earned 500 total points
ID: 40629095
Here is a great example site for how to structure the url's to be crawlable:
http://html5.gingerhost.com/

I'm pretty sure that if the browser doesn't support javascript (or is a bot), they likely load a fully static page, instead of dynamically inserting the content for each url.
0
 
LVL 1

Author Closing Comment

by:justaphase
ID: 40630254
You made my day!!

thx! :)
Miguel
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question