WP Manifestindependent plugin directory
manifest / seo / redirect-deleted-products

Redirect deleted products

WordPress - WooCommerce - create redirect if product is deleted

by Stefan Schotvanger · github.com/wonder32/redirect-deleted-products · website

1stars
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/wonder32/redirect-deleted-products/archive/refs/heads/master.zip

Readme

puddinq -

WordPress - WooCommerce - create redirect if product is deleted

puddinq Project: https://github.com/wonder32/redirect-deleted-products
Website: puddinq.com
Twitter: @schotvs
Author : Stefan Schotvanger // @schotvs
WooCommerce

Features

  1. The url for a deleted product is saved automatically
  2. In the admin view you can choose:
    • Do nothing
    • Redirect to category ( 301 or 302 )
    • Redirect to other product ( 301 or 302 )
    • Redirect to main shop page ( 301 or 302 )
  3. When the url is called:
    • WordPress checks if the product exists (you might have recreated it)
    • If not, WordPress will try the 404, but before it serves it, it will check the list
    • Your deleted product will be served search engine friendly

Install

Download zip

Get latest version from: Download page

  • Use the plugin upload functionality to upload the zip and install the plugin.
  • Extract to contents of the zip to the plugins directory of your installation.

git

$ git clone git@github.com:wonder32/redirect-deleted-products.git

composer

Add packages to your composer file

{
  "repositories": [{
    "type": "composer",
    "url": "https://packages.puddinq.com"
  }]
}

run

composer require puddinq/redirect-deleted-products

changelog

  • 0.5.1 Update functions
  • 0.5 Building the 3 step functionality
  • 0.4 tested base plugin version
  • 0.3 17-11-2019 WordPress update functionality
  • 0.2 16-11-2019 composer package
  • 0.1 15-11-2019 init

Read the full README on GitHub →