How to escape a single question mark in a 301 redirect in htaccess
<p>Basically I'd like to do a 301 re-direct from one specific dynamic page that has a question mark character (?) in the URL to a static page. </p>

<p>The reason I want to do this is that this page is effective for SEO, but it will benefit from its own page now. I've used Rewrite rules for redirecting query strings many times, but I can't seem to figure how to escape, say, a specific url that has a ?. For example:</p>

<pre><code>Redirect 301 /page.php?page_id=1 /new-page/
Redirect 301 /page.php?page_id=10 /cool-product/
</code></pre>

<p>I do not need to do the following:</p>

<pre><code>RewriteRule ^page/([0-9]+)/([a-zA-Z0-9_-]+)/$ ./page.php?page_id=$1 [R=301,L]
</code></pre>