Oops. When I said "can't be right" I didn't mean that your logs are in error. I meant that the redirect pattern can't be intentional. This may be the easiest issue to fix, so why not look into it first.
It works in the server, but not in localhost
Same version of apache on both? Same config file settings? Do other redirects and rewrites work as intended?