title: rewriting images directory with htaccess
body: <p>so here is the old address</p>
  
  <pre><code>http://sie.com/files/images/2013/12/600x415_img.jpg
  </code></pre>
  
  <p>note that all the image names are starting with <code>600x</code> </p>
  
  <p>also 
  2 directories before image <code>2013/12/</code> are dynamically created and can be different for other images depending on month/year </p>
  
  <p>i want to redirect all these links to (all 600x images have been moved to new directory )</p>
  
  <pre><code>http://sie.com/thumbs/images/2013/12/600x415_img.jpg
  </code></pre>
  
  <p>basically replacing <code>files</code> with <code>thumbs</code> </p>
  
  <p>this is what i have but it doesn't work</p>
  
  <pre><code>RewriteRule ^files/images/([0-9]*)/([0-9]*)/600x(.*)$ thumbs/images/$1/$2/600x$3[L]
  </code></pre>
  
  <hr>
  
  <p>here is my current htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  
      RewriteEngine On
  
      RewriteBase /
  
      RewriteCond %{HTTP_HOST} ^img\.site\.com$ [NC]
      RewriteRule ^(images/.+)$ site.com/files/$1 [R=301,NC,L]
  
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{ENV:REDIRECT_STATUS} ^$
  
      RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
  &lt;/IfModule&gt;
  </code></pre>