lucy24 - 7:17 am on Jan 19, 2013 (gmt 0)
lucy, I compared your code to mine (line by line) and couldn't find a change
Hint: Rotate your head 90 degrees ;)
btw, in case you couldn't tell: both g1 and I habitually go through the Forums by opening a string of new posts in adjoining tabs and then reading them one by one. Therefore you will sometimes get posts that seem to either ignore or contradict the preceding six posts. In this case, only one-- but a pretty substantive one.
For some reason your first conditional redirect causes an internal server error (RewriteCond: bad flag delimiters)
I found the problem in MAMP. It's not the trailing space after the flag-- server doesn't seem to care about that. And "bad flag delimiter" is a little bit of a red herring.
Further hint: "space" is the operative word. You're going to kick yourself. (Not going to say any more, because it's so useful to find it yourself :))