title: mod_rewrite 301 Redirect: from old to new dynamic url
body: <p>I am trying to get a mod_rewrite working correctly.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} ^main_page=product_info&amp;products_id=301$ 
  RewriteRule ^index\.php$          
  /blog/shop/index.php?route=product/product&amp;product_id=301? [R=301,L]
  </code></pre>
  
  <p>It works, but in the end of the new URL %3f is added. 
  Can somebody help me to get it work?</p>