【发布时间】:2014-02-25 14:35:32
【问题描述】:
我正在尝试让我的 AngularJS 启用 html5mode 被谷歌索引。
在我的 app.js 中,我有以下 sn-p:
$locationProvider.html5Mode(true);
在我的 index.html head 我有以下内容:
<base href="/"/>
<meta name="fragment" content="!"/>
我希望收到格式为/?_escaped_fragment_=support 的网址的请求。相反,我收到了/support?_escaped_fragment_= 的请求。
我的配置有问题还是我预料到有什么奇怪的地方?
【问题讨论】: