Rewrite rule not working, but only when parameter is text

Rewrite rule not working, but only when parameter is text