Htaccess redirect with drupal and gallery


#1

I am in the process of moving my drupal6/gallery2 website to dreamhost.
I got it moved over and everything is working.

Way back when, before I moved to drupal I had some webpages that I moved to drupal. So I used .htaccess to do static http redirects.

I’m trying to recreate the rules here, but it isn’t working properly.

I need example.com/drupal/99/foo.htm to go to example.com/drupal/bar/1999/Foo

on my current side I use a rewriterule:
RewriteRule ^/drupal/99/foo.htm$ /drupal/bar/1999/Foo [NC,R=301,L]

I also tried a redirect:
Redirect 301 /drupal/99/foo.htm /drupal/bar/1999/Foo

It almost works, I end up getting redirected to:
http://example.com/drupal/bar/1999/Foo?q=99/foo.htm

You can see the left over part of the original is attached as a ?q=
I don’t know where this is coming from. Drupal has a rule that turns ‘x’ into ‘index.php?q=x’ but that doesn’t appear to be the case here.

Any idea what is going on here? Or is there a better solution to staticly map one url to another without running any other rules?