Our wordpress site utilizes the wordpress cms to serve up json data that we ingest via ajax requests and serve up with javascript. I would like to create URLs for my regular wordpress pages/posts that follow google’s recommended crawlable ?_escaped_fragment_= URL permalink structure:
For more information on crawlable ajax, read this article.
This article also goes into detail about making your ajax-driven site google friendly
So, while the javascript driven content’s link looks like this:
http:// examplesite.com/#!about
The regular post generated from wordpress should have a URL like this:
http:// samplesite.com/?_escaped_fragment_=about
I am wondering if there is any way to do this with all wordpress posts/pages through the wordpress system. One alternative, using a 302 redirect from the htaccess file back to the wordpress generated posts/pages, which I haven’t confirmed is acceptable by google can be found here
Still, since we are using wordpress as a CMS, it seems like it would be easy to use WordPress engine (or a plugin) to serve up these alternate URLs, especially since it is becoming the standard method of having your javascript driven site’s content indexable. I tried to modify the permalinks with this URL structure, but that was a no-go and did not work.
Any and all suggestions welcome!
I would suggest not using the hash bang urls. Consider PJAX: https://github.com/defunkt/jquery-pjax
It does partial page loads to speed things up and gracefully degrades for users with JavaScript disabled and search bots.
There is even a little library for making using PJAX in themes a bit easier (example).