title: Remove Page Number from URL with .htaccess
body: <p>I need page numbers from URLs of the form:</p>
  
  <pre><code>http://mydomain.com/index.php?showtopic=XXXX&amp;page=XXXX&amp;#entryXXXX
  </code></pre>
  
  <p>so they become </p>
  
  <pre><code>http://mydomain.com/index.php?showtopic=XXXX&amp;#entryXXXX
  </code></pre>
  
  <p>where XXXX are integers</p>
  
  <p>I've previously tried:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^(.*)showtopic=([0-9]+)&amp;page=([0-9]+)(.*) http://mydomain.com/index.php?showtopic=$1$3 [QSA,L,R=301] 
  </code></pre>
  
  <p>but to no avail. So I shortened it to:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^(.*)&amp;page=([0-9]+)(.*)$ $1&amp;$3 [QSA,L,R=301] 
  </code></pre>
  
  <p>but still nowt. Is there anything wrong with the regex at all?</p>