Redirect page 404 to search

2

Hello, I have a site in magento and some product pages no longer exist, but there are other products with similar names. What happens? Many of these links are still being accessed, what I would like to do is when a 404 error is found on the site and STRING URI is redirected to the search

EX:
http://www.loja.com.br/index.php/iphone6-16gb-preto.html
Irá redirecionar para:
http://www.loja.com.br/index.php/catalogsearch/result/?q=iphone6+16gb+preto

So I will have the user on the page yet and will show other products that I find in the search.

Personal VLW.

    
asked by anonymous 17.04.2015 / 14:31

1 answer

1

The easiest way to do this is to use the magento's own URL rewrite module.

Go to the admin backend - > Catalog - > Url Rewrite and add the desired routes.

    
17.04.2015 / 16:17