Add 301 redirect to drupal 7 .htaccess
Drupal 7 drives me nuts. It's got some great principles behind it, but so many "johnny come latelys' jumped on the whole "New Drupal" ship I don't know it it didn't sink. A lot of new users hadn't ever experienced the frustration of making sizable changes to a CMS, like sa the jump from Drupal 5 to 6... which wasn't even as severe as the jump from D6 to D7! UGH! Then there's documentation and all that...and it just drives me up a tree! Changes is inevitable though, and in a few years time Drupal 7 will be stronger and better to use than Drupal 6, so I'm stay abreat of the technology changes.
One of the many poorly documented changes was the restructing of the .htaccess. This however isn't nescessarily drupal 7's fault... since this document was last noted as being relevant to Drupal 4.7. Some one re-wrote it in 2010, but they must not have used the Drupal 7 .htaccess at the time. I can't say I blame them for not writing about Drupal 7 at that time though, as early adopting Drupal 7 was a lot like jumping in a car made out of bailing twine and white bread slices and then taking it down a mountain pass. Things didn't hold up and there was a lot of carnage! Anyways, that tangent aside, the documentation is outdated, references the wrong code... and well it's just plain not written for humans!
Anyways, the missing information is as such:
Where the .htaccess file says this (line 55 as of 4/19/12):
# Various rewrite rules.
You add this (add at line 59 as of 4/19/12):
#301 Redirects from all the old site content to all the new site content
RewriteRule ^path/from/site/base/filename.php $ http://www.newsite.com/path/of/whateverness [R=301,L]
Add as many lines as nescessary to complete the job, and you're good to go! You have now written your own .htaccess redirect for drupal 7!