title: Redirect using username in URL with .htaccess
body: <p>I want to do a redirection where a user enters their user name in the URL and redirects to their profile, like this-> <code>example.com/user/joe</code> redirects <code>example.com/user/profile.php?username=joe</code> and obviously shows their profile. </p>
  
  <p>I've looked around on how to do this but still haven't managed to get it working.
  How will I be able to do this? And where am I supposed to place my .htaccess file?</p>
  
  <ul>
  <li>root
  <ul>
  <li>admin</li>
  <li>includes</li>
  <li>public
  <ul>
  <li>user
  <ul>
  <li>profile.php</li>
  </ul></li>
  <li>index.php</li>
  </ul></li>
  </ul></li>
  </ul>