title: 301 Redirect/Rewrites with Patterns
body: <p>I know using the power of regex, I can reduce my 301's into a few lines. However, I do not have the brain power for it.</p>
  
  <p>Basically our links went from:</p>
  
  <p><a href="http://www.site.com/collection/womens-active" rel="nofollow">http://www.site.com/collection/womens-active</a> (this can also have ?brand=123 queries attached to the end)</p>
  
  <p>To:</p>
  
  <p><a href="http://www.site.com/collection/active" rel="nofollow">http://www.site.com/collection/active</a></p>
  
  <p>"womens-" is the changed part.</p>
  
  <p>A simple 301 works perfectly, even with queries, but there is about 100 lines for this in htaccess. </p>
  
  <p>With Regex, can we reduce this to a few lines? </p>