gop
gop

Reputation: 2200

Ajax seo techniques

I've read some topics regarding enabling google to crawl ajax based sites but the information is quite controvesrial. Is it possible? If yes can someone post a link to a tutorial please?

I most often use ajax with jquery in the following way:

  1. I have a div
  2. I send request to a php backend where the html is generated
  3. When the response arrives i set the inner html of the div with the response i got

Is that a good approach in order to make the page seo optimized?

Thanks

Upvotes: 4

Views: 2007

Answers (5)

Binyamin
Binyamin

Reputation: 7803

You might wont to use AJAX SEO https://github.com/laukstein/ajax-seo

Upvotes: 0

JohnP
JohnP

Reputation: 50019

Have a look at this link : http://code.google.com/web/ajaxcrawling/

Google has guidelines on how to expose your content to its crawler.

Also, this question on SO talked about the same thing : What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

Upvotes: 4

Micah Carrick
Micah Carrick

Reputation: 10187

I prefer taking a progressive enhancement design strategy in which the website is designed in very simple markup that the search engines can crawl and then adding AJAX on top for user experience. This typically employs "hijacking" links and forms with Javascript to override the default behavior and replace it with AJAX requests.

Upvotes: 1

Atika
Atika

Reputation: 1618

In my website, I use a normal php page and if its requesting by Ajax, its don't include the header and the footer, its just retrieve the content (body) and include it.

If the content is retrieved from a database, you can create a normal page who retrieve the content and a program just for Ajax.

Just think if you deactivate Javascript, your site continue to work.

Upvotes: 0

sod
sod

Reputation: 3928

You can design the Website to be fully accessible without JavaScript and after that speed up the things you want with AJAX on top of it.

Upvotes: 0

Related Questions