I have a simple question…I had an old store and people bookmarked specific product pages in their browsers as well as Google search points to some specific pages. I have now installed a new version of Magento (1.9.1) and some of these URLs will not longer work (they will show the standard 404 not found Magento page).
What would be the best way to forward all these hits to the front page?
Best Answer
As you said only for product pages then it would be better to override only
product view controller
here i can give you little example to create your own extension to make this sense
config.xml
i was done with the child products when they are now not visible to catalog search and redirect customer to parent products. But you may change logic for controller to set your own redirect as you like
And in ProductController.php
And module configuration file will looks like
Allysin_OldProductsHandler.xml
i am sure you have better idea now.
hope this will work for You.