最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Ajax seo techniques - Stack Overflow

programmeradmin1浏览0评论

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

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

Share Improve this question edited Mar 20, 2011 at 13:08 Jared Farrish 49.3k17 gold badges99 silver badges107 bronze badges asked Mar 20, 2011 at 13:05 gopgop 2,1985 gold badges27 silver badges54 bronze badges
Add a ment  | 

5 Answers 5

Reset to default 4

Have a look at this link : http://code.google./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?

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.

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.

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.

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

发布评论

评论列表(0)

  1. 暂无评论