After reading Google\'s policy on making Ajax-generated content crawlable, along with many developers\' blog posts and Stackoverflow Q&A threads on the subject, I\'m left wi
I have found a solution that does not require any Java, Node.js or any other way to make a redundant copy of a JS code generating website. Also it supports all browsers.
So what you need to do is provide the snapshot for Google. It's the best solution, because you dont need to mess with other URLS and so on. Also: you don't add noscript to your basic website so it's lighter.
How to make a snapshot? Phantomjs, HTMLUnit and so on require a server where you can put it and call. You need to configure it, and combine with u website. And this is a mess. Unfortunately there is no PHP headless browser. It's obvious because of the specifics of PHP.
So what is the other way of getting snapshot? Well... if user opens website you can get the snapshot of what he sees with JS (innerHTML).
So what you need to do is:
And if Google Bot visits your hash bang website you get the file of the snapshot for the page requested.
Things to solve:
Also there is one thing: not all pages will be visited by users but you need snapshots for the Google before they visit.
So what to do? There is solution for this also:
But hey, how to visit all those pages? Well. There are some solutions for this:
Also remember to refresh old snaps ocassionally to make them up to date.
I hope to hear from you what do you think about this solution.