url - URL 约定中的新 `#!` 是什么?

标签 url url-rewriting hashbang

Possible Duplicate:
What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

我注意到一些热门网站开始切换到新的 URL(约定?),其中 URI 段不再以 / 为前缀。而是通过#!/ .

例如,如果您在 Twitter 中输入 http://twitter.com/stackoverflow ,它会立即重定向到 http://twitter.com/#!/stackoverflow .

如果我只在 Twitter 上看到这个,我不会再三考虑,但现在我在其他网站上看到了这个。

这是 URL 重定向的新约定吗?我可以在哪里了解更多相关信息?

最佳答案

它是由 Google 发起的 ( http://code.google.com/web/ajaxcrawling/ )

If you're running an AJAX application with content that you'd like to appear in search results, we have a new process that, when implemented, can help Google (and potentially other search engines) crawl and index your content. Historically, AJAX applications have been difficult for search engines to process because AJAX content is produced dynamically by the browser and thus not visible to crawlers. While there are existing methods for dealing with this problem, they involve regular manual maintenance to keep the content up-to-date.

看看这里的答案:

What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

关于使用此功能的意见存在分歧 - Gawker 在接受此功能后遇到了重大问题:http://www.webmonkey.com/2011/02/gawker-learns-the-hard-way-why-hash-bang-urls-are-evil/

关于url - URL 约定中的新 `#!` 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6180539/

相关文章:

swift - 如何让 SFSafariViewController 恢复工作?

django 捕获任何 url?

python - Django-cms Apphook url 不加载

facebook - Facebook 和新 Twitter URL 中的 shebang/hashbang (#!) 是做什么用的?

javascript - 路由灵活的 JavaScript 单页应用程序?

html - 固定页眉与页内 anchor 重叠

.htaccess - 如何将我的 Silverstripe 网站的子页面显示为子域?

c# - 没有页面扩展的 URL 重写规则

php - 捕获所有无效的 URL

javascript - 您应该在 AJAX 内容网站上使用 hashbang,还是只使用普通 URL?