title: Domain redirect and rewrite with htaccess
body: <p>If a my site is <code>www.example.com</code> and a user types in <code>www.example.com/robert</code> I would like to display the page at <code>www.example.com/users?user=robert</code>. Basically I want to create a profile page for each user but I want it to be accessible by simply typing the username after the domain as a directory.</p>
  
  <p>How can I do this with .htaccess?</p>