How to redirect old site URL:s to Drupal clean URL

How to redirect old site URL:s to Drupal clean URL without getting the trailing query like; tjanser?q=service-1.aspx

  RewriteRule ^kontakt/medarbetare-2.aspx$ http://www.newsite.com/personal [R=301,L]
  RewriteRule ^(.*)nkar-5.aspx$ http://www.newsite.com/lankar [R=301,L]
  RewriteRule ^service-1.aspx$ http://www.newsite.com/tjanster [R=301,L]

The 301 tells browsers and spiders it is a permanent redirect, and the L ensures that no other rewrites are processed on the URL before it reaches Drupal; Hence place this code above Drupal 's own URL rewrite, but below the command RewriteEngine on.

Source: http://drupal.org/node/16084

Knowledge keywords: