I need to write a rewrite rule in my Apache server Version 2.2.10.
My URL request contains a ? in it which should actually be preceeded by a /, but due to a product bug, the / is missing. So,
The correct URL is something like : http://anything.com/ask/?0.10101
But, now it is passed like http://anything.com/ask?0.10101
due to the bug.
How should I write a rule to insert a / before the ?. I tried out the below with no success :
RewriteRule ^/ask(\?.*)$ http://anything.com/ask/$1