title: RewriteRule that works with paginated pages
body: <p>I am trying to define a RewriteRule</p>
  
  <p>Within the site I have pages like this:</p>
  
  <pre><code>index.php?pag=company&amp;id=853
  </code></pre>
  
  <p>And I've defined this rule:</p>
  
  <pre><code>RewriteRule ^/([a-zA-Z0-9])/([0-9]+)$index.php?pag=company&amp;id=$2 [NC, L]
  </code></pre>
  
  <p>Trying to get this result:</p>
  
  <pre><code>company/university-of-gloucestershire/1656
  </code></pre>
  
  <p>This rule works, however doesn't work for paginated pages, like:</p>
  
  <pre><code>index.php?pag=company&amp;id=853&amp;page=2
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>RewriteRule ^/(.*)/([0-9]+)/([0-9]+)$ index.php?pag=company&amp;id=$2&amp;page=$4 [NC, L]
  </code></pre>
  
  <p>Trying to get to:</p>
  
  <pre><code>company/university-of-gloucestershire/1656/page/2
  </code></pre>
  
  <p>Can anyone point out what's wrong?</p>