title: Remove query string parameter to create a more user-friendly URL
body: <p>I have this <code>.htaccess</code> file and I have no knowledge with mod_rewrite,</p>
  <pre><code>RewriteEngine On
  RewriteRule ^(.+[^/])/$ http://%{HTTP_HOST}/$1 [R=301,L]
  RewriteCond %{THE_REQUEST} \s/([^.]+)\.php [NC]
  RewriteRule ^ /%1 [NE,L,R]
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.*)/?$ /$1.php  [L]
  </code></pre>
  <p>What I want to achieve is to have <code>localhost/viewticket/${id}</code> instead of <code>localhost/viewticket.php?id=123</code></p>
  <p>I have tried many <code>.htaccess</code> rules but none worked except this one that hides <code>.php</code> in my URL.</p>