Post by alfaone78 » Wed Aug 08, 2018 8:48 pm

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

Newbie

Posts

Joined
Tue Jan 15, 2013 8:31 pm

Post by synapseindia » Mon Aug 13, 2018 9:42 pm

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.

User avatar
Active Member

Posts

Joined
Thu Apr 05, 2018 2:27 pm
Who is online

Users browsing this forum: No registered users and 288 guests