WP Manifestindependent plugin directory
manifest / unclassified / slp-redirector

SLP Redirector

Allows editors and admins to set specific redirection rules for missing posts of each post type to a relative URL or the post type's archive page. Use case: a site which produces posts which are only fresh for a short time and routinely deletes old posts when they are no longer relevant.

by Scott Roberts, KSStorm · github.com/ksstormnet/slp-redirector

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ksstormnet/slp-redirector/archive/refs/heads/main.zip

Short-Lived Post Redirector

Redirects missing posts of specified types to a relative URL or the post type's archive.

Description

The Short-Lived Post Redirector plugin allows users with the Editor or Admin role to select post types and specify a relative URL for redirection. When a visitor tries to access a non-existent post of a selected type, they will be redirected to the specified URL or the first archive page of that post type if no URL is provided. The settings are accessible via an admin page, where the user can check the post types to redirect and provide a custom URL if desired.

Installation

  1. Upload the plugin files to the /wp-content/plugins/slp-redirector directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the Settings->SLPR Settings screen to configure the plugin.

Frequently Asked Questions

Can I redirect to an external URL?

No, this plugin is designed to accept only relative URLs for redirection to avoid off-site redirects.

What happens if I don't specify a custom URL?

If no custom URL is provided, the plugin will redirect missing posts of the selected types to their first archive page.

Changelog

1.0

  • Initial release.