【问题标题】:Magento is returning “200 OK” status instead of “404 not found”Magento 返回“200 OK”状态而不是“404 not found”
【发布时间】:2016-02-10 01:28:47
【问题描述】:

我已经安装了 Magento 1.7.0.2。

如果我浏览到我网站上不存在的 URL,我会从服务器收到“200 OK”状态,尽管该 URL 仍然无效并且仍然显示 404 页面。

culr - 我 www.shopmami.com//aa HTTP/1.1 200 正常 日期:2015 年 11 月 9 日星期一 11:27:49 GMT 服务器:阿帕奇 X-Powered-By: PHP/5.2.17

你能帮帮我吗?

【问题讨论】:

    标签: magento http-status-code-404


    【解决方案1】:

    问题在于模板 Blanco

    [root@host.shopmami.com] ~ >> curl -I http://www.almohadaspremama.com/aa

    HTTP/1.1 200 正常

    我禁用了模板 Blanco 并获得了正确的状态。 root@host.shopmami.com] ~ >> curl -I http://www.almohadaspremama.com/aa

    HTTP/1.1 404 未找到

    【讨论】:

      猜你喜欢
      • 2010-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-29
      • 1970-01-01
      相关资源
      最近更新 更多