title: Htaccess redirect for hundreds URL
body: <p>I have old site with hundreds URL that look like that: </p>
  
  <blockquote>
    <p>http:www.domain.com/Contact.asp?Pid=344 </p>
    
    <p>http:www.domain.com/Contact.asp?Pid=345 </p>
    
    <p>http:www.domain.com/Contact.asp?Pid=346</p>
  </blockquote>
  
  <p>and so on ...</p>
  
  <p>I need to move all of them permanent to 1 single URL : </p>
  
  <blockquote>
    <p>http:www.domain.com/contact</p>
  </blockquote>
  
  <p>I tried this: </p>
  
  <pre><code>RewriteCond %{QUERY_STRING} Contact.asp?Pid=([0-999]+) 
  
  RewriteRule ^http://www.domain.com/contact? [L,R=301]
  </code></pre>
  
  <p>But it doesn't work well.</p>
  
  <p>The old site use <code>ASP</code>. The new site build on <code>Joomla</code>. The domain will be the domain from old site</p>