title: How do I use .htaccess to redirect an aspx page to a php page?
body: <p>I recently moved from a asp.net host to a PHP host. I am trying to setup 301 redirects of my old urls using .htaccess. Here is what I want to accomplish:</p>
  
  <pre><code>old url: http://www.vasanth.in/downloads/download.aspx?file=file.zip
  new url: http://www.vasanth.in/downloads/download.php?f=file.zip
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>RedirectMatch 301 /downloads/download.aspx\?file=(.*)$ http://www.vasanth.in/downloads/download.php\?f=$1
  </code></pre>
  
  <p>This does not seem to work? What am I doing wrong?</p>