title: How to create virtual directories in PHP?
body: <p>I want to create an application in PHP implementing virtual directory feature.<br>
  Example: <code>http://mydomain.com/user001</code> will display the contents of the url <code>http://mydomain.com/index.php?user=user001</code>. How can I do that?</p>
  
  <p><strong>Note:</strong><br>
  I am using Apache server.</p>