title: .htaccess Url Rewrite Remove Query-String Keys
body: <p>I have a set of urls like...</p>
  
  <pre><code>www.example.com/page/1/name/abc
  www.example.com/city/la/name/abc
  www.example.com/page/1/name/abc/city/la
  www.example.com/page/1/
  </code></pre>
  
  <p>And want to convert them as..</p>
  
  <pre><code>www.example.com/1/abc
  www.example.com/la/abc
  www.example.com/1/abc/la
  www.example.com/1/
  </code></pre>
  
  <p>Basically i want to hide keys from query string.</p>
  
  <p>How to do this? Any Help?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I have different keys for every page and there are about 25 keys per page.</p>