Page 1 of 1

Redirect from product to category

Posted: Wed Aug 08, 2018 8:48 pm
by alfaone78
Hi,
in my store i need to redirect via htaccess all pages of a master category to the master category.
For example
www.mysite.it/mycategory/subcategory
www.mysite.it/mycategory/a_product
www.mysite.it/mycategory/subcategory/a_product
etc
to
www.mysite.it/mycategory

any idea? im not able with htaccess. I try to do but without any result
My opencart version are 2.1

Tnx

Salvo

Re: Redirect from product to category

Posted: Mon Aug 13, 2018 9:42 pm
by synapseindia
You can simply get the route and other parameters and set the redirection accordingly.
For reference - You can create a function where you can pass the route and category id and send them to the desired page.

Thanks.