搜索引擎优化和在URL中使用#!搜索引擎优化、URL

2023-09-10 17:23:49 作者:和我谈恋爱叭

我读的地方关于如何创建一个网站,加载页面的每个部分使用AJAX,同时还提供搜索引擎优化。它必须是与在URL中使用!#。类似于Twitter的一样。我似乎无法找到任何地方任何事情。有谁知道我在说什么?

I read somewhere about how you can create a website that loads each section of a page with AJAX while still providing SEO. It had something to do with the use of !# in a url. Similar to what twitter does. I can't seem to find anything about it anywhere. Does anyone know what I'm talking about?

推荐答案

#!被称为hashbang,他们是一切的根源是邪恶的网页发展。

#! is called a "hashbang" and they are the root of all that is evil in web development.

基本上,弱的Web开发人员决定使用 #anchor 名称为缺憾黑客获得网络2.0的东西来工作,他们的页面,然后抱怨谷歌自己的网页排名受到影响。谷歌通过使hashbang作了变通,以他们的杂牌组装电脑。

Basically, weak web developers decided to use #anchor names as a kludgy hack to get "web 2.0" things to work on their page, then complained to google that their page rank suffered. Google made a work around to their kludge by enabling the hashbang.

弱Web开发人员把这项工作作为左右福音。不要使用它。这是一个拐杖。

Weak web developers took this work around as gospel. Don't use it. It is a crutch.

Web开发依赖于hashbangs是网络开发完成的错误

Web development that depends on hashbangs is web-development done wrong.

这篇文章是远远好措辞比我以往任何时候都可以了,从他们的迁移Gawker的媒体惨败给交易(失败)hashbang中心的网站。它会告诉你发生什么事,为什么它是坏的。

This article is far more well worded than I could ever be, and deals with the Gawker media fiasco from their migration to a (failed) hashbang centric website. It tells you WHAT is happening and why it's bad.

http://isolani.co.uk/blog/javascript/BreakingTheWebWith​​HashBangs