I have to migrate a shop site to another shop system.
The problem I have is that in new shop system, all products name must ended with -detail
in the URL.
In today site here is the URL of a product:
domaine.com/shop/category1/productname
In new shop same product will have this URL:
domaine.com/shop/category1/productname-detail
I would like that when using this old URL domaine.com/shop/category1/productname
, user will be redirected to right one: domaine.com/shop/category1/productname-detail
can this be done through htaccess without having to define a line for each product (~2500) ?
This shop has also normal URL like domaine.com/contact
and I don't want to add -detail
for those URL. Only when calling a product into a shop category.