Ouch! HTTP_HOST is your own domain name, not the other guy's IP address. You want REMOTE_ADDR :)
Does that other domain-- the one you're redirecting to-- have the exact same URL structure as your first domain? If not, there's no point to capturing anything in the request.