htaccess redirect url with special characters (+)

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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.

i nvz,lM v,8JhZLDhbxhNY rDnalON EKoya0Z12,kAt24G,qpmV6ktBpl
uyOtcOA9pO6BAP

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham