I have the following line of code in a .htaccess file:
RewriteRule ^mypage/(.+)/$ mypage.php?a=$1
This rewriterule works most of the time. However, if I try passing a parameter like C++, which would be mypage/C%2B%2B/ then it does not work properly. It should go to mypage.php?a=C%2B%2B... but instead it seems to look like mypage.php?a=c++ and so the the PHP code sees the value of a=c<space><space>
How can I update the RewriteRule to pass the hex coding to the rewritten url ?
Thank you in advance