如何使Ajax内容可被搜索引擎抓取 [英] How to making ajax content crawlable by search engines

查看:132
本文介绍了如何使Ajax内容可被搜索引擎抓取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过jquery.ajax()分页结果的网站. URL如下:website.com/index.php?page=N

I have a website that paginate result via jquery.ajax(). URLs looks like: website.com/index.php?page=N

我已经在Google上搜索并找到了一些谈论它的帖子...所以我了解的是我需要替换?"和 "#!".够了吗?

I've googled and found some posts talking about it... so what i've understood is that i need to replace the "?" with "#!". It's that enought?

此外,我应该在站点地图中包含每个页面的链接吗?

Besides, should i include in the sitemap a link for each page?

website.com/index.php (priority 1)
website.com/index.php#!page=2 (priority 0.9)
and so on...

推荐答案

我对此的最佳答案是从源头获得的,这是Google希望您使AJAX内容可索引的方式:

The best answer I can give on this is from the source, here's how Google prefers you make your AJAX content indexable: Making AJAX Applications Crawlable.

对于有关网址的具体问题,请从此处开始.

For your specific question about the URL piece, start here.

这篇关于如何使Ajax内容可被搜索引擎抓取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆