So I’ve packaged an observer I used for a client that wanted to redirect disabled products to their deepest subcategory in an extension for Magento 1.9. Yeah, Magento 1 is quite old and obsolete, but there are still people running Magento 1 stores around… so maybe it’s useful for someone.
It works Magento 1.9.3.x and newer versions. Maybe older ones too, haven’t tested.
I must point out that the extension creates a 302 temporary redirect to the category. (notify search engines that it is a temporary redirect) If you wish for it to make 301 permanent redirects, you need to replace 302 with 301 in file Observer.php at line 24. And that’s it.
It’s free and you can get it here on GitHub.
If you want to support this blog consider joining me on Patreon!
Become a Patron!