Skip to content
fix for Magento 2 homepage redirects to 404 page
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Plugin
etc
LICENSE
README.md
composer.json
registration.php

README.md

Magento 2: Homepage 404 error

1. Description

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. After that any GET request with see 404 page until you flush FPC. Magento team stated that bug is fixed in Magento 2.3.2 https://github.com/magento/magento2/issues/21299#issuecomment-485144642

2. How to install

Install via composer (recommend)

Run the following command in Magento 2 root folder:

composer require elpas0/magento2-fix-homepage-404
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:clean

Install ready-to-paste package

  • Download package from magento2-fix-homepage-404.zip
  • Unzip it
  • Upload it to your magento root ( package/app >> magento_root/app )
  • Run the following command in Magento 2 root folder:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:clean

Contributors

NWDthemes team

Quick Links

You can’t perform that action at this time.