【问题标题】:Where to put sitemap.xml in HTML5 mode angular application将 sitemap.xml 放在 HTML5 模式 Angular 应用程序中的位置
【发布时间】:2015-11-06 09:36:31
【问题描述】:

我使用 HTML5 模式的 Angular 应用程序托管在节点 js 服务器中。我正在使用 phantom js 生成快照并将该快照提供给搜索机器人。但我不确定应该在哪里添加 sitemap.xml 文件在我的应用程序中.如果我放在公用文件夹或其他文件夹中,由于角度路由,机器人无法使用它。请建议一种在我的站点中添加 sitemap.xml 的方法

【问题讨论】:

    标签: angularjs node.js seo sitemap googlebot


    【解决方案1】:

    您可以将 sitemap.xml 放到您网站上的任何文件夹中。此外,如果您指定此 robots.txt,您可以在其他域上使用 sitemap.xml。

    在您的情况下,您需要禁用特定 URL 的 Angular Js 路由。阅读Disable angularJS routing for a specific url 和其他相关问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-19
      • 1970-01-01
      • 2017-08-25
      • 2012-07-22
      • 1970-01-01
      • 2016-05-13
      • 1970-01-01
      • 2018-08-12
      相关资源
      最近更新 更多