title: Rewrite folder's name using htaccess
body: <p>I am wondering wether it's possible to use .htaccess to rewrite a folder name. What I mean is this.</p>
  
  <p>Lets say I have a url like:</p>
  
  <pre><code>www.example.org/anyname/page.php
  </code></pre>
  
  <p>Now I want to rewrite the url to (for example)</p>
  
  <pre><code>www.example.org/folder1/page.php
  </code></pre>
  
  <p>The folder1 is an existing folder on my webspace.</p>
  
  <p><strong>important:</strong> the "anyname" is not a folder rather just a name!</p>
  
  <p>Ok here is a step by step plan:</p>
  
  <p>User types <code>www.site.com/anyname/login.php</code>.
  The url should rewrite and not redirect the url to <code>www.site.com/folder1/login.php</code>
  This means that "anyname" is just a name and not a directory. All the code should just come from folder1. Acutally "anyname" should just be an alias for folder1. I can't just rename folder1 to "anyname". Therefore I would just rewrite folder1 to "anyname".</p>