title: Check url for string and 301 redirect to url without the string
body: <p>I have checked a lot of htaccess redirects but I can't seem to find one that suits my needs. We have an old url like this:</p>
  
  <p>www.domain.com/shoes/nike/filter/gender/men</p>
  
  <p>I would like a rule that checks the url for the string 'filter' and 301 redirects it to:</p>
  
  <p>www.domain.com/shoes/nike</p>
  
  <p>Is that possible with htaccess?</p>