title: .htaccess wildcard folder redirect 301 to Perl script
body: <p>I currently have a site that I want to redirect "ANY/ALL" requests with with the word "booth" (non case sensitive) my link structures look like this:</p>
  
  <ul>
  <li>www.url.com/booth102</li>
  <li>www.url.com/booth103</li>
  <li>www.url.com/booth104</li>
  </ul>
  
  <p>I cant seem to figure it out but here is what I have so far:</p>
  
  <pre><code>  //Rewrite to www
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^.url.com[nc]
    RewriteRule ^(.*)$ http://www.url.com/$1 [r=301,nc]
  
    //301 Redirect Old File
    RedirectMatch 301 /booth(*) http://www.url.com/cgi-bin/test.pl
  </code></pre>