Streaming live at 10am (PST)

How do you 301 redirect all URLs that end in a query string?

How do you set up a 301 redirect so that all URLs that end in #locale=ja redirect to their corresponding pages but on a new domain?

To say it a different way, and by way of example: I’d like to set up one main redirect (or as few as possible) that changes[/*/*]?locale=ja