3
默認情況下,使用Durandal的路由器創建網址的格式爲這樣:如何使用#!而不是在Durandal URL中只有#號?
http://example.com/#/whiskey-tango-foxtrot
不過,我想使用#!搜索引擎優化的目的,從而使URL看起來像這樣:
http://example.com/#!/whiskey-tango-foxtrot
欲瞭解更多信息上了我的意思,請參見:https://developers.google.com/webmasters/ajax-crawling/
任何想法我可以如何與迪朗達爾做到這一點?
有對谷歌組後上類似的話題:https://groups.google.com/論壇/?fromgroups =#!topic/durandaljs/F0TqaqYPnPw – 2013-03-26 23:25:15
我即將開始一個項目使用杜蘭道必須克服相同的問題。在durandaljs.com上有一篇關於此主題的新文章: http://durandaljs.com/documentation/Making-Durandal-Apps-SEO-Crawlable/ – Davy 2014-01-13 10:49:07
所有的Durandal doc網址都已更改,現在有.html '追加到最後。上面鏈接的新網址是http://durandaljs.com/documentation/Making-Durandal-Apps-SEO-Crawlable.html – 2014-02-06 05:32:00