title: Redirect already Rewriten URL with parameter
body: <p>In order to edit my actual URL structure. I need to redirect my "old" links to keep the incoming links active.</p>
  
  <p>Everything is working fine, however it doesn't work when the "old" links have parameters.</p>
  
  <p>Here is the first part of my .htaccess (which is working) :</p>
  
  <pre><code>Options +FollowSymlinks -MultiViews
  RewriteEngine On
  
  # Rewrite the "old" url "/models" to "/models-pictures"
  RewriteRule ^/?models/?$ /models-pictures [R=301,NE,L]
  
  # New redirection
  RewriteCond %{REQUEST_URI} /models-pictures/?$ [NC]
  RewriteRule . models.php [L]
  </code></pre>
  
  <p>And now the second part which is not redirecting</p>
  
  <pre><code># Rewrite the "old" url "/models/[name]-pictures" to "/[name]-pictures" 
  RewriteRule ^/?models/([a-z\-A-Z]+)-pictures/?$ /%1-pictures [R=301,NE,L] &lt;- Not working
  
  # New redirection
  RewriteCond %{REQUEST_URI} /([a-z\-A-Z]+)-pictures/?$ [NC]
  RewriteRule . orderby.php?model=%1 [L,QSA]
  
  # New redirection
  RewriteCond %{REQUEST_URI} /([a-z\-A-Z]+)-pictures/([a-z\-A-Z]+)/?$ [NC]
  RewriteRule . p.php?model=%1&amp;media=%2 [L,QSA]
  </code></pre>
  
  <p>Any ideas? Thank you.</p>