title: HTAccess rewrite PHP GET in one directory
body: <p>I have one particular directory where I want to mask the URL. It looks like this right now:</p>
  
  <pre><code>https://www.example.com/users/invoice/?order=0000000
  </code></pre>
  
  <p>I want it to look like this:</p>
  
  <pre><code>https://www.example.com/users/invoice/0000000
  </code></pre>
  
  <hr>
  
  <p>I tried adding this line to my root .htaccess file:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^users/invoice/(.*)$   users/invoice/?order=$1 [L]
  </code></pre>
  
  <p>but this causes a 500 error when I try to access any URL under <code>/users/invoice/</code>.</p>
  
  <p>What am I doing wrong? And is there a way to write a rule directly into an .htaccess file in <code>/users/invoice/</code>?</p>