【发布时间】:2013-03-16 21:42:21
【问题描述】:
默认情况下,使用 Durandal 路由器创建的 URL 格式如下:
http://example.com/#/whiskey-tango-foxtrot
但是,我想使用 #!出于 SEO 目的,因此 URL 如下所示:
http://example.com/#!/whiskey-tango-foxtrot
有关我的意思的更多信息,请参阅:https://developers.google.com/webmasters/ajax-crawling/
知道我可以如何使用 Durandal 完成此任务吗?
【问题讨论】:
-
google 群组上有一篇类似主题的帖子:groups.google.com/forum/?fromgroups=#!topic/durandaljs/…
-
我即将开始一个使用 durandal 的项目,该项目必须解决同样的问题。 durandaljs.com 上有一篇涉及此主题的新文章:durandaljs.com/documentation/Making-Durandal-Apps-SEO-Crawlable
-
所有 Durandal 文档 url 都已更改,现在末尾附加了“.html”。上面链接的新网址是durandaljs.com/documentation/…
标签: url durandal fragment-identifier hashbang