Rewrite URL not working
Handling of "Clean URLs" has changed from Drupal 6 to Drupal 7 in a way that affects Apache RewriteRule.

I'm not sure if that is what has bitten you since I don't recognise home/software?code=$1 as a typical Drupal URL. But I've found that in Drupal 7 I need to rewrite to a "unclean" URL.

For instance, the following will work in Drupal 6, but not in Drupal 7:

RewriteRule ^home/code/([^/]+) home/software/node?code=$1


In Drupal 7 you must not rewrite to a clean URL destination, even if you have clean URLs enabled.  The following will work in Drupal 7:

RewriteRule ^home/code/([^/]+) ?q=home/software/node/&amp;code=$1