title: How can I change the value of a query string parameter with a redirect?
body: <p>I want to redirect "http://www.suma.ir/product.php?id_product=12" to "http://www.suma.ir/product.php?id_product=508" but I'm having trouble. The URL path should stay the same, all I want to do is change the ID in the query string. What do I need to do to make this work?</p>
  
  <pre><code>Options +FollowSymlinks
  
  RewriteEngine on
  
  RewriteCond %{HTTP_HOST} ^suma\.ir$ [NC]
  RewriteRule ^(.*)$ http://www.suma.ir/$1 [R=301,L]
  
  # This is the part that isn't working
  Redirect 301 /product.php?id_product=12 http://www.suma.ir/product.php?id_product=508
  </code></pre>