Magento2.3 - My site homepage gives 404 page not found error. All other pages of the site are working properly. After a clear page cache, it is working properly. And also I got this problem in my other 2 sites.
Can anyone help me on this issue?
Thank you in advance.
Regard,
Mayank Z
Solved! Go to Solution.
Hello All,
Thank for your reply. I have tried your suggestions but it's not working.
Finally, we have got the solution after spent too much on this issue. So, I just want to share the solutions with you all maybe it'll save your time.
I have used following link for homepage gives 404 page not found and it solves my issue. Open below link and make some changes on suggested file and enable page cache. That's it!
https://github.com/Jitheesh/magento2/commit/3cbc7260205ee61b044c051dbbc999a05eea2529
Again, thank you very much for your response.
Regard,
Mayank Zalavadia
Hi @MayankZalavadia,
Can you share your site URL? For checking purpose
If my information is useful, give kudos
Best regards
Madhuresan
Bootsgrid
@madhuresan_ramanan Not every time we'have got 404 error. some time it's gives 404. If you have any suggestion/solutions for this type of error then share with me.
Hi @MayankZalavadia,
Can you check it in incognito window? or otherwise Just remove caches in your browser if any.
If my information is useful, give kudos & accept as solution
Best regards
Madhuresan
Bootsgrid
@madhuresan_ramanan Yes, I already tried that but no luck.
Hi @MayankZalavadia,
Can you share your site URL here?
Hello All,
Thank for your reply. I have tried your suggestions but it's not working.
Finally, we have got the solution after spent too much on this issue. So, I just want to share the solutions with you all maybe it'll save your time.
I have used following link for homepage gives 404 page not found and it solves my issue. Open below link and make some changes on suggested file and enable page cache. That's it!
https://github.com/Jitheesh/magento2/commit/3cbc7260205ee61b044c051dbbc999a05eea2529
Again, thank you very much for your response.
Regard,
Mayank Zalavadia
Another case is Full page cache can’t distinguish GET request from HEAD request. If you do not have cached data or it is invalidated and web crawler send HEAD type request to your site, magento return 404 page and cache it. More here - https://nwdthemes.com/2019/06/28/magento-2-homepage-404-error/