【问题标题】:How do I add a noindex meta tag to error report pages.如何将 noindex 元标记添加到错误报告页面。
【发布时间】:2012-11-13 16:12:50
【问题描述】:

在 Magento 中,/errors 下有通用错误报告。这些目前正在被谷歌索引。我尝试将元 noindex 标记添加到 /default/page.phtml 但这似乎不起作用。也许我什至应该接触这些文件。在其他情况下,例如在愿望清单中,我更新了 XML - 但在这种情况下无法弄清楚如何进行。提前感谢您的任何帮助。

【问题讨论】:

    标签: php magento error-handling seo noindex


    【解决方案1】:

    将以下内容放入网站根目录中的robots.txt

    User-agent: *
    Disallow: /errors/
    

    如果您有兴趣,这里还有一个更详尽的版本:

    http://www.byte.nl/blog/2012/06/11/magento-robots-txt/

    【讨论】:

      猜你喜欢
      • 2016-04-13
      • 1970-01-01
      • 2011-09-06
      • 1970-01-01
      • 2012-10-01
      • 1970-01-01
      • 2018-03-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多