.htaccess How to create a RedirectPermanent by triming a char?

My goal is to create a permanent redirect

http://example.com/category-/list/town/id/id2/country

to
http://example.com/category/list/town/id/id2/country

(removing the last ‘-‘ char (if present) from category

regards


Source: .htaccess

Leave a Reply