【问题标题】:seo with AngularJS in html5mode在 html5mode 中使用 AngularJS 进行 seo
【发布时间】: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_= 的请求。

我的配置有问题还是我预料到有什么奇怪的地方?

【问题讨论】:

    标签: angularjs seo


    【解决方案1】:

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

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

    YearofMoo - SEO

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      • 2013-11-06
      • 2015-02-16
      • 2014-09-10
      • 1970-01-01
      相关资源
      最近更新 更多