简体   繁体   English

Magento主页可以正常显示,但状态代码为404

[英]Magento homepage works, displays correctly, but status code is 404

I have a very weird issue with my magento CE installation. 我的magento CE安装有一个非常奇怪的问题。 Homepage works correctly, renders correctly, cookies are set, but status code of the request is 404. Any other page has status code 200 OK. 主页可以正常工作,可以正确呈现,设置了cookie,但是请求的状态代码为404。其他任何页面的状态代码都为200 OK。

Any ideas what is going on? 有什么想法吗? I don't even know what should I check. 我什至不知道该检查什么。

我的问题的答案是我删除了主页,然后将其设置为no-route因为原始主页已消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wordpress 帖子页面得到 404 但主页有效 - Wordpress post page get 404 but Homepage works 优胜美地本地主机显示404,但计算机名称显示“有效!” - Yosemite localhost displays 404, but computer name displays “It works!” Apache:强制使用404状态代码 - Apache: forcing a 404 status code 使用状态代码将子目录重定向到404页面 - Redirect subdirectory to 404 page with status code AngularJS SEO页面404标头状态代码 - AngularJS SEO Page 404 Header Status Code Magento 2 请求方法:POST 状态码:302 - Magento 2 Request Method: POST Status Code: 302 我在使用Index.php加载主页时获得404,但index.php适用于直接链接,为什么? - i get a 404 while loading the homepage with Index.php, but index.php works on direct links, why? Symfony 项目仅适用于主页。 当我导航到其他页面时,Apache 返回 404 - Symfony project works only homepage. When I navigate to the other pages Apache returns 404 Magento正在缓存404 URL,以便它们返回“ 200 OK”状态,而不是“ 404 not found”。 我该如何预防? - Magento is caching 404 URLs so that they return “200 OK” status instead of “404 not found”. How do I prevent this? admin-ajax.php偶尔返回404状态代码 - admin-ajax.php returning 404 status code sporadically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM