WP Manifestindependent plugin directory
manifest / seo / 301-redirect-plugin-wordpress

WP Singular Post Redirect

Here’s a WordPress plugin to handle 301 redirects for duplicate posts and revisions. The plugin will redirect users to the most relevant post based on title, tags, or related content. It ensures the frontend presents singular posts for better SEO and user experience.

by Kim Jacobsen · github.com/kimjac/301-redirect-plugin-wordpress

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/kimjac/301-redirect-plugin-wordpress/archive/refs/heads/main.zip

Here’s a WordPress plugin to handle 301 redirects for duplicate posts and revisions. The plugin will redirect users to the most relevant post based on title, tags, or related content. It ensures the frontend presents singular posts for better SEO and user experience.

Key Features of the Plugin:

  1. 301 Redirects:

    • Checks for duplicate posts by title.
    • Redirects to the most relevant published post.
    • Falls back to tag-based related posts if no exact title match is found.
  2. Prevention of Duplicate Posts:

    • Prevents publishing duplicate posts by setting their status to "draft."
  3. SEO Optimization:

    • Ensures only one version of a post is accessible to users and search engines.

Installation Instructions:

  1. Copy the code into a file named wp-singular-post-redirect.php.
  2. Upload the file to the /wp-content/plugins/ directory.
  3. Activate the plugin from the WordPress admin panel.

Let me know if you need further enhancements or explanations!