Skip to content

MGPelloni/redirection-scheduler

Repository files navigation

A human-like clock contemplating what the future holds while sitting next to white flowers on a hill

PHP version WP version License: GPL v3 semantic-release: angular

Redirection Scheduler

The Redirection Scheduler plugin allows administrators to schedule future redirects for the Redirection plugin.

Installation

Download the Redirection Scheduler plugin and install it on your WordPress site. Redirection Scheduler will automatically detect if the Redirection plugin is installed and active. If it is not, you will be prompted to install it.

Usage

The Redirection Scheduler plugin enqueues a redirect record to be added to the Redirection plugin at a future time and date. Once the date is reached, the redirect will be enabled automatically using WordPress Cron. You can schedule redirects by navigating to Tools -> Redirection Scheduler within the WordPress administration bar.

To add a redirect, simply fill out the form on the Redirection Scheduler admin page. The form will automatically validate the fields and display any errors. Once the form is filled out, click the Schedule button to queue the redirect.

  • Start Date - The start date that the redirect will be enabled.
  • Start Time - The start time that the redirect will be enabled.
  • Source URL - The URL that will be redirected.
  • Target URL - The URL that the source URL will redirect to.
  • Redirect Type - The HTTP code that will be used for the redirect.

WordPress Cron Configuration

The Redirection Scheduler plugin uses the WordPress Cron to check if a redirect should be enabled. The default configuration of WordPress Cron does not run constantly as the system cron does; it is only triggered on page load. This means that if no one visits the site, the cron will not be triggered and the redirect may not be enabled at the exact time specified.

To solve this issue, you can disable the WordPress Cron and enable a system cron. Check with your hosting provider to see how cron is handled within your WordPress instance and if they can assist you in setting up a system cron for WordPress.

About

Extends the Redirection plugin by allowing administrators to schedule redirects at a later time.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages