title: Replace a part of url with htaccess RewriteRule
body: <p>I have a part of url to replace with htaccess :</p>
  
  <p>How to replace <code>root/aaa/bbb/css/images/ddd.image.png</code> to <code>root/aaa/css/images/ddd.image.png</code></p>
  
  <p>I tried without success this code in the .htaccess in the root folder : </p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^aaa/bbb/(.*) /aaa/$1 [L,QSA,R=301]
  </code></pre>
  
  <p>In the aaa folder, there is this .htaccess :</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
  </code></pre>