如何使Ajax内容可被搜索引擎抓取

编程入门 行业动态 更新时间:2024-10-09 22:15:11
本文介绍了如何使Ajax内容可被搜索引擎抓取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have a website that paginate result via jquery.ajax(). URLs looks like: website/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/index.php (priority 1) website/index.php#!page=2 (priority 0.9) and so on...

推荐答案

我对此的最佳答案是从源头获得的,这是Google希望您使AJAX内容可索引的方式:使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内容可被搜索引擎抓取

本文发布于:2023-11-01 00:48:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547762.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:搜索引擎   Ajax   容可

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!