I have an ecommerce store with the product URL format:
I will shorten it to:
I can do the change within the ecommerce software, but I need to set up a mod rewrite redirect for the old URLs.
To avoid matching URLs for categories, content pages, etc, as well as product URLs of the new format, I need to match on all these conditions:
- Does not contain the string "/info/"
- Contains a slash, followed by 1 or more characters, followed by another slash, followed by 1 or more digits, followed by "--", followed by 1 or more characters
What directive would work?
More examples of matching and non matching strings
Matches for old product url: