I’m trying to figure out how to remove trailing slashes from only certain URLs using Apache rewrites / redirects.
For example:
I want to 301 redirect http://www.example.com/woo/ to http://www.example.com/woo
I only want to remove the trailing slash from certain URLs.
Any help?
For a single URL:
Use a regex group alternation for multiple URLs:
Will work for these three examples: