如果我做的一切在我的使用Ajax网页,我该怎么做搜索引擎优化?我的、我做、怎么做、我该

2023-09-11 00:55:17 作者:无敌元气大王

如何抓取工具和Ajax应用程序之间的关系?

How is the relationship between crawlers and ajax applications?

做网络爬虫或浏览器阅读动态创建的meta标签?

Do the web crawlers or browsers read dynamically created meta tags?

我想到了:

添加锚点到页面 创建永久链接的内容 在动态添加meta标签。

HTTP://$c$c.google。 COM /网/ ajaxcrawling /文档/学习,more.html

推荐答案

JavaScript并没有在搜索引擎优化中的实际意义不是很多你。搜索引擎主要是看原始文本,就像你看到的网页源代码。搜索引擎不能在这个页面的源运行JavaScript,它是从字面上就像你看它的大部分。一个更有用的方法是解释如何在使用依赖于搜索引擎蜘蛛的JavaScript的支持非常有限的AJAX,而不是让现在的网站SEO兼容。这是非常简单的,如果你知道公式。

JavaScript doesn't do much for you in terms of SEO in a practical sense. The search engines mostly see raw text just as you see the page source. The search engine does not run JavaScript on this page source, it is literally like you are looking at it for the most part. A more useful approach would be to explain how you can make your website SEO compatible now while using AJAX instead of relying on very limited support for search engines spidering JavaScript. This is very straight forward if you know the formula.

其重要先了解所有,如果你甚至应该做到这一点。对于初学者来说,如果你的网站主要是一个纲领性基于表单或HTML5的游戏,例如,那么你没有必要担心搜索引擎优化不是设置初始meta标签,并具有解释了什么是对网页上的内容等。如果你有一个基于内容的网站或尤其是电子商务型网站,这是一个不同的故事,你需要非常小心,所有的内容是搜索的第一个然后在添加AJAX的结冰。

Its important to understand first of all if you should even do this. For starters, if your website is primarily a programmatic based form or an HTML5 game for example then you have no need to worry about SEO other than setting the initial meta tags and having content on the page that explains what it is about. If you have a content-based website or especially an ecommerce-based website this is a different story and you need to be very careful that all your content is searchable first then add in the AJAX as icing.

我的背景是建立搜索引擎优化,并具有AJAX交互性服务产品的意见和内容的社会友好型的电子商务网站。我还创建了服务通过AJAX是搜索引擎优化兼容的内容很多信息化网站。如果你访问我的个人资料,你可以看到几个网站,这是存在的,如 HTTP://www.klim .COM / EN-US /店(例如电子商务)和 http://www.kitgui.com/文档(纯含量的例子)。这些网站都是非常高端的在执行方面,有些已接近10万大关我承担了项目的规模而言。换句话说,客户是非常严重的,并期望在投资巨大的回报让SEO是非常重要的。

My background is creating SEO and social friendly ecommerce websites that have AJAX interactivity for serving product views and content. I also have created many information-based websites that serve content through AJAX that are SEO compatible. If you visit my profile you can see several websites where this is occurring such as http://www.klim.com/en-us/shop (ecommerce example) and http://www.kitgui.com/docs (purely content example). These sites are very high end in terms of implementation and some nearing the 100K mark in terms of the size of the projects I take on. In other words, the clients are very serious and expect a great return on investment so SEO is highly important.

这种方法是相当简单的,更容易理解比谷歌的提议。

The approach is quite simple and easier to understand than Google's proposal.

请没有Ajax网站的工作适用。送达的内容应通过一个唯一的URL,导致浏览器发出另一个请求(不是一个哈希标签URL)直接挂钩。只关注内容服务是素雅的第一步。 不管你想要提供使用AJAX,使用jQuery和附加一个单击事件取消当前点击行为,然后使用jQuery的负荷的方法通过AJAX在内容上绘制和填充在页面上的内容区域中的内容。确保你每一次的URL集的哈希,你这样做是为了实际的URL相对于根的,但附加的如哈希标记,以便:/ myoriginalURL#/ mynewurl所以散后的事情是,你会去实际的真正网址 小心支持hashchange事件,直到HTML5的历史操作变得更加支持。这将允许您使用历史后退/前进按钮以及书签功能。

如果你想看到实际执行拼写,我回答了堆栈溢出另一个相关的职位,你可以在这里找到 - > see帖子这是非常详尽的,并解释如何做到这一点的一个真实的场景。

If you want to see actual implementation spelled out, I answered another related post on Stack Overflow you can find here -> see post that is very detailed and explains how to do this in a real world scenario.

在这一切的哇哇哇的关于搜索引擎优化,不要忘了这些其他方式的重要性日益增加,以获得流量滚动到您的网站:

In all this yapping on about SEO, do not forget the increasing importance of these other ways to get traffic rolling into your website:

的Open Graph 的思迈特网站 在社会喜欢(脸谱,微博,DISQUS,2007-06-18,等等等等) Open Graph The Sematic Web Social Likes (Facebook, Twitter, Disqus, AddThis, etc etc)
 
精彩推荐
图片推荐