title: .htaccess not working to hide folders in urls
body: <p>I would like to remove these two folders: 'folder1s' and 'folder2' from my site's url, and the php extension but it's not taking effect with my .htaccess file. </p>
  
  <p><a href="http://www.example.com/folder1/folder2/are_string_beans_all_right_on_the_candida_diet.php" rel="nofollow">http://www.example.com/folder1/folder2/are_string_beans_all_right_on_the_candida_diet.php</a></p>
  
  <p>convert</p>
  
  <p><a href="http://www.example.com/are-string-beans-all-right-on-the-candida-diet/" rel="nofollow">http://www.example.com/are-string-beans-all-right-on-the-candida-diet/</a></p>
  
  <p>here is my .htaccess file</p>
  
  <pre><code>DirectoryIndex index.php
  AddDefaultCharset utf-8
  
  RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
  RewriteCond %{HTTPS}s ^on(s)|
  RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  
  Options +FollowSymLinks -MultiViews
  # Turn mod_rewrite on
  RewriteEngine On
  RewriteBase /
  
  RewriteRule ^index\.php/?$ / [L,R=301,NC]
  RewriteRule ^((?!folder1/folder2).*)$ folder1/folder2/$1 [NC,L]
  </code></pre>