title: htaccess url rewrite wont allow other pages
body: <p>I have a script thanks to Howlin that will rewrite my url, however, I cannot access any other page then, it just gives a 404 error?</p>
  
  <p>The rewrite rewrites <code>localhost/docci.me/profile.php?user=person</code> to <code>localhost/docci.me/person</code> and it works, but as soon as I try to load <code>logout.php</code>, <code>index.php</code>, or any other page, it gives a 404. If I take the .htaccess code out, it works fine but obviously does not rewrite the URL like I need it to.</p>
  
  <p>here is the code:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{THE_REQUEST} ^(GET|POST)\ /docci.me/login/profile\.php\?user=(.*)\ HTTP
  RewriteRule ^ /docci.me/login/%2\? [R=301,L]
  
  RewriteCond %{QUERY_STRING} !user=
  RewriteRule ^(.*)$ /docci.me/login/profile.php?user=$1 [L]
  </code></pre>