title: How to hide query string from url using .htaccess?
body: <p>Here is the link for editing a form : </p>
  
  <pre><code>&lt;a class="btn btn-success btn-xs" href="&lt;?php echo SITE_URL."update?z=$zone_id" ?&gt;" &gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>Now in update.php page the url is something like bellow :</p>
  
  <pre><code>http://localhost/aponit/dev/update?z=55
  </code></pre>
  
  <p>Now I want to url should like like bellow : </p>
  
  <pre><code>http://localhost/aponit/dev/update/55
  </code></pre>
  
  <p>How can I do this using .htaccess ? </p>
  
  <p><strong>Note:</strong> Using current .htaccess rule I am hiding just <code>.php</code> extension from the url </p>
  
  <p><strong>My Current .htaccess file</strong> </p>
  
  <pre><code>ErrorDocument 404 /not-found.php
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.*)$ $1.php [NC,L]
  RewriteRule ^aponit/dev/update/([0-9]+) aponit/dev/update.php?z=$1 [L]
  </code></pre>