I need to redirect all URLs with a slash at the end to the corresponding URL without it. For example I need to redirect this URL:
domain.com/category/subcategory/
to this URL:
domain.com/category/subcategory
Or this URL:
domain.com/category/
to this URL:
domain.com/category
How can I do it with a .htaccess redirect rule? Is it possible?
Thanks!