title: Remove trailing ? [question mark] from url - empty query string
body: <p>I am moving a website to a new Open Cart install and I have set up 301 redirects to keep any SEO value. </p>
  
  <p>I had to use the following trick here - <a href="http://www.itsadam.co.uk/opencart-301-redirect-not-working-seo-fix-_route_/" rel="nofollow">http://www.itsadam.co.uk/opencart-301-redirect-not-working-seo-fix-<em>route</em>/</a> - to work around an annoying issue with the way Open Cart handles url rewrites. So, I have this sort of thing in my .htaccess file currently:</p>
  
  <pre><code>redirect 301 /products-page /products?
  </code></pre>
  
  <p>However, this now leaves my rewritten urls with a trailing ? - an empty query string effectively:</p>
  
  <pre><code>http://www.mysite.com/products?
  </code></pre>
  
  <p>Is there a way I can use rewrites to match and ditch any superfluous question marks? (I need to retain any actual query strings).</p>