I’m saving last part of url to parameter $1.
let say url is oldpage.com/test-page so $1 is: ‘test-page’
then I’m appending it to the end of destination url.
so I am redirected to: mypage.com/search?var=test-page
what I’m trying to achieve is to replace all “-” in $1 with a space symbol “%20”
expected result: mypage.com/search?var=test%20page
I couldn’t find a way to do it in regex, so maybe it’s possible to do it by editing the plugin?