Skip to content

WordPress plugin for handling large volumes of legacy redirects in a scalable manner.

Notifications You must be signed in to change notification settings

rodruiz/WPCOM-Legacy-Redirector

 
 

Repository files navigation

WPCOM Legacy Redirector

WordPress plugin for handling legacy redirects in a scalable manner.

This is a no-frills plugin (no UI, for example). Data entry needs to be bulk-loaded via the wp-cli commands provided or custom scripts.

Redirects are stored as a custom post type and use the following fields:

  • post_name for the md5 hash of the "from" path or URL.
  • we use this column, since it's indexed and queries are super fast.
  • we also use an md5 just to simplify the storage.
  • post_title to store the non-md5 version of the "from" path.
  • one of either:
  • post_parent if we're redirect to a post; or
  • post_excerpt if we're redirecting to an alternate URL.

For detailed documentation, please see https://vip.wordpress.com/plugins/wpcom-legacy-redirector/

Please contact us before using this plugin.

About

WordPress plugin for handling large volumes of legacy redirects in a scalable manner.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 77.4%
  • Shell 22.6%