В моем магазине электронной коммерции есть два магазина:
example.com / - International example.com/en-GB/ - Великобритания
У нас сейчас решил удалить en-GB и объединить оба магазина в один.
Мне нужно сделать следующее
Redirect example.com/en-GB/ to example.com (Easy)
Вот часть, в которой я не уверен. Все продукты имеют одинаковые URL в обоих магазинах (категории и страницы, которые они не совпадают)
Пример
example.com/en-GB/about-us - Redirect to example.com
example.com/en-GB/random-page - Redirect to example.com
example.com/en-GB/random-category - Redirect to example.com
example.com/en-GB/alloy-wheels/product231 - should redirect to example.com/alloy-wheels/product231
example.com/en-GB/alloy-wheels/productpage5234 - should redirect to example.com/alloy-wheels/productpage5234
Для повторной итерации
example.com/en-GB/ should redirect to example.com/
example.com/en-GB/ (Any URL that doesn't have /alloy-wheels/ after it) should redirect to example.com/
example.com/en-GB/alloy-wheels/productpage should redirect to example.com/alloy-wheels/productpage
Возможно ли это и как мне это сделать?