title: Rewrite folder(s) name(s) in htaccess
body: <p>I have a folder named <em>folder1</em>, and <em>folder1</em> contains some php files</p>
  
  <p><strong>FOLDER1 FILES</strong></p>
  
  <p><em>index.php</em></p>
  
  <p><em>user.php</em></p>
  
  <p>I want to rewrite only the folder name to <em>new_name</em> with htaccess so that I can access <em>folder1</em> files using the new name, say <code>example.com/new_name/user.php</code> Instead of <code>example.com/folder1/user.php</code></p>
  
  <p>I've already tried the code below</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  ReweiteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/$ /$1 [L,R]
  
  RewriteRule ^new_name(.*)$ /folder1/$1 [L,NC,R=301]
  </code></pre>