experius/module-pagenotfound

1.5.0 2024-10-25 12:44 UTC

README

This module saves all 404 urls to a database table.

  • Adds an admin grid with 404s
  • Adds an admin config
  • It includes a count so you can see which 404 urls needs your attention first.
  • Allows you to configure a permanent redirect for the 404s found in the admin grid.
  • Saves the last visited date
  • Saves the storeview for easy filtering

Admin grid location: System > Tools > 404 Reports

Admin configuration location: Stores > Settings > Configuration > Advanced > 404 Reports

Why should you use it?

  1. Reports all 404s, not only the ones from Google.
  2. Store owner can fix them by them
  3. Import redirect list when migrating to M2.

Installation

 composer require experius/module-pagenotfound

How to use the import csv function?

  1. Create a csv called "pagenotfound.csv" with two two columns: from and to url (don't add column headers)
  2. Add the full url including https:// (for both from and to url) to this csv
  3. Use semicolon (";") as your separator
  4. Upload csv on the Magento server (f.e. var/import folder)
  5. Run the import file command including the url from the previous step

cronjob

  • Can be turned on and off in the admin configuration
  • 404 reports with a redirect can be kept
    • Even if it normally would've had been deleted
  • Runs once per day
  • Runs at 03:00 AM

command

  • Command to delete records
  • Deletes records according to the config in the admin
  • Parameter --days is available to overwrite the days in the admin configuration