title: RewriteRule URL User-friendly profile link creation
body: <p>I am trying to create user-friendly URLs for my users profiles. For example, elena93, is a user. And to go to her profile, you can simply go to: <code>http://mysite.com/elena93</code></p>
  
  <p>I know how to achieve this using htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^([^//]+)$ user.php?id=$1 [QSA,L]
  </code></pre>
  
  <p>The above code works, but the problem is, I have rewritten urls for other pages too. Like, home.php can be accessed using <code>http://mysite.com/home</code>, messages.php can be accessed using <code>http://mysite.com/messages</code>. When I set up the user-friendly profile links, rewritten urls for home, messages, etc pages stops working.</p>
  
  <p>How do I fix that? Thank you!</p>