Type
magento2-module
This module changes the default magento 404 page given when a product is disabled and redirects it to the first category it belongs to
magento2-module
OSL-3.0, AFL-3.0
None
None
None
None
None
None
This module changes the default magento 404 by redirecting users who try to go to a disabled product URL to the first category the product belongs
composer require sysforall/disabledproductsredirect
To customise the redirection message log into your Magento Admin Panel, go to Stores -> Configuration -> Sysforall -> Disabled Products Redirect
When complete, Save Config.