D
D
Daulet2020-09-07 13:01:54
Joomla
Daulet, 2020-09-07 13:01:54

Mass redirect htaccess how to do?

Good afternoon. There is an online store on Joomla, Joomshopping.
Now one product has three types at once - site/catalog/product
and - site/category/product
and - site/category/subcategory/
product goods
In general, you need to leave only the first option.
Couldn't figure it out. Helpeeee
I tried to do something like:
RedirectMatch 301 ^/$1/$2/(.*) /catalog/$1
but I don't have enough knowledge

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-09-07
@dodo512

RedirectMatch 301 ^(?!/catalog/)(/[^/.]+){2,3}$ /catalog$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question