htaccess redirect url with special characters (+)

Multi tool use


htaccess redirect url with special characters (+)
I have a URL like this.
http://olddomain.com/product-category/x-tended+bottoms/
and I wanted to apply a 301 redirect via htaccess to http://newdomain.com/shop/extended-bottoms
However, when i'm trying to apply a rule that goes like this, it doesn't take effect and instead lands me to page not found.
RedirectMatch 301 ^/product-category/x-tended+bottoms/(.*)$ https://mothersenvogue.com.hk/shop/all-bottoms?
RedirectMatch 301 ^/product-category/x-tended+bottoms/(.*)$ https://mothersenvogue.com.hk/shop/all-bottoms?
What regex can I use to change the plus sign (+) on the url?
1 Answer
1
So I was able to find a reference answer to my question by adding the highlighted rule to check the plus sign (+) on URLs:
RedirectMatch 301 ^/product-category/x-tended**[s+]**bottoms/$ https://newdomain.com/?$
htaccess redirect a plus sign
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.