cancel
Showing results for 
Search instead for 
Did you mean: 

My site homepage gives 404 page not found error.

SOLVED

My site homepage gives 404 page not found error.

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: My site homepage gives 404 page not found error.

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

View solution in original post

8 REPLIES 8

Re: My site homepage gives 404 page not found error.

Hi @MayankZalavadia,

Can you share your site URL? For checking purpose



If my information is useful, give kudos

Best regards
Madhuresan

Bootsgrid

Re: My site homepage gives 404 page not found error.

@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.

Re: My site homepage gives 404 page not found error.

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

Re: My site homepage gives 404 page not found error.

@madhuresan_ramanan Yes, I already tried that but no luck.

Re: My site homepage gives 404 page not found error.

Hi @MayankZalavadia,

Can you share your site URL here?

Re: My site homepage gives 404 page not found error.

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

Re: My site homepage gives 404 page not found error.

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/

Re: My site homepage gives 404 page not found error.

Hello,

Please refer: https://github.com/magento/magento2/issues/21299

I hope it helps!