由ajax和seo加载的单页的最佳实践(best practice for single page loaded by ajax and seo)

编程入门 行业动态 更新时间:2024-10-22 05:15:16
由ajax和seo加载的单页的最佳实践(best practice for single page loaded by ajax and seo)

我正在开发一个具有以下结构的网站:

<body> <section> <sub-section> Content 1 </sub-section> <sub-section> Content 2 </sub-section> </section> <section> <sub-section> Content 3 </sub-section> <sub-section> Content 4 </sub-section> </section> </body>

加载页面后,所有部分都由ajax加载。 该网站有两种语言,因此如果用户决定切换语言,则所有部分都会再次加载,但是在不同的语言中。

目标是通过Google抓取工具将每个部分编入索引为不同的页面。

到目前为止,我的方法如下:

每个部分都有元数据:关键字,标题等。当用户输入:mysite.com/section_name时,页面将加载所需部分的元数据。

问题是当googles抓取时,它会看到每个不同的页面具有不同的元数据值但具有相同的html结构。

你对如何解决这个问题有什么建议吗?

谢谢!

I'm developing a site wich has the following structure:

<body> <section> <sub-section> Content 1 </sub-section> <sub-section> Content 2 </sub-section> </section> <section> <sub-section> Content 3 </sub-section> <sub-section> Content 4 </sub-section> </section> </body>

Once the page is loaded all the sections are loaded by ajax. The site has two language so if the user decides to switch the language, all sections are loaded again but in a different languaje.

The goal is to get each section indexed as a different page by the google crawlers.

My approach so far is the following:

Each section has metadata: keywords, title, etc. When a user types: mysite.com/section_name the page is loaded with the metadatada of the required section.

The problem is that when googles crawls it will see that each different pages has different metadata values but the same html structure.

Do you have any suggestion on how to solve this?

Thanks!

最满意答案

以下是一些可能有助于您创建HTML快照主题的链接。

https://developers.google.com/webmasters/ajax-crawling/ https://support.google.com/webmasters/answer/174992 抓取工具的HTML快照 - 了解其工作原理

Here is a few links that might help you with the subject of creating HTML snapshots.

https://developers.google.com/webmasters/ajax-crawling/ https://support.google.com/webmasters/answer/174992 HTML Snapshot for crawler - Understanding how it works

更多推荐

本文发布于:2023-08-06 14:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1450248.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   seo   ajax   practice   loaded

发布评论

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

>www.elefans.com

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