2014-02-25 47 views
1

我想让我的AngularJS html5mode启用索引的谷歌。seo与AngularJS在html5mode

在我app.js我有下面的代码片段:

$locationProvider.html5Mode(true); 

在我的index.html head我有以下几点:

<base href="/"/> 
<meta name="fragment" content="!"/> 

我希望得到的格式的URL的请求/?_escaped_fragment_=support。相反,我收到/support?_escaped_fragment_=的请求。

我的配置有什么问题,或者我期望有什么奇怪的东西吗?

回答

0

根据yearofmoo SEO的文章,你应该得到这样的:

http://yourwebsite.com/?_escaped_fragment_=/some/page/with/ajax/content 

YearofMoo - SEO