English 中文(简体)
这是什么新的`#!`在URL约定中?[副本]
原标题:What s this new `#!` in URL convention? [duplicate]
This question already has answers here:
Closed 12 years ago.

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

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

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

最佳回答

它是由谷歌(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.

看看这里的答案:

脸书和新推特URL中的shebang/hashbang(#!)是用来做什么的

关于使用它的意见存在分歧-Gawker在使用它后出现了重大问题:http://www.webmonkey.com/2011/02/gawker-learns-the-hard-way-why-hash-bang-urls-are-evil/

问题回答

这就是谷歌在处理AJAX时应该如何索引页面





相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...