Skip to content

Check other sites for the requested path and redirect there during 404.

Notifications You must be signed in to change notification settings

tenseg/tg-404-site-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

404 Site Checker

When you get a 404 this will check the requested path at a site you define and redirect there if found rather than showing the 404.php template from your theme.

Installation

Download the latest release and upload it to your site, then activate the plugin. Then follow the on-screen prompt to set the URL of the site to check against. The prompt takes you to the Settings > 404 Site Checker screen in the Dashboard, which has a field for you to enter the URL of the site to check against.

If you are using this on a WordPress Multisite Network install where all sites should share one check site, you may prefer setting the check site in your wp-config.php file using the following code:

define('TG_404_CHECK_SITE', 'https://example.com');

The plugin will always use what is defined in wp-config.php if it is found. So if you have a check site set both ways, the one set from the 404 Site Checker screen will be ignored.

Changelog

These release notes are based on the issues resolved in our TG 404 Site Checker issue tracker. The numbers cited below refer to those issues.

1.2 - 2024-10-16

  • Move updates to Github

1.1.1 - 2022-11-04

  • Fix for fatal error seen by new users on settings page

1.1 - 2022-08-17

  • Support an array of check sites in the define statement (#12)

1.0.5 - 2021-08-11

  • Made assorted cleanup fixes to the page for this plugin on WordPress.org (#6)
  • Unified plugin name with settings screen title (#7)
  • Added an icon for the plugin (#9)

1.0.4 - 2021-08-10

  • Now using WP HTTP library (#3)
  • Properly escaping variables (#4)
  • Using a text domain (#5)
  • Numerous other tweaks to support submission to WordPress.org and to unify reused code

1.0.3 - 2021-08-07

  • Changed the title of the plugin in its settings screen

1.0.2 - 2021-08-05

  • Added an admin notice for when the check site is not configured (#2)

1.0.1 - 2021-08-05

  • Added a settings screen (#1)

1.0.0 - 2021-08-05

  • Initial release

Notes

Bumping the version number

Change version and add release notes in this file and in the readme.txt used by the WordPress.org directory.

Update the version number in the header of tg-404-site-checker.php.