Streaming live at 10am (PST)

Query parameters with 301 redirects

Hi there,

I’ve seen lots of posts from 2015, 2016 and 2017 about 301 redirects. I’m writing to get more up to date info.

I’d like to set up some redirects that maintain query parameters (e.g. utm tags). I’d like to make something simliar to the following:
www.website.com/page1?query_params —> www.website.com/en/page1?query_params

This works sometimes with a redirect similar to this:
www.website.com/page1%?(.*) —> www.website.com/en/page1%?%1

Unfortunately it doesn’t seem to work all the time. I haven’t worked out what the difference is between redirects that do work and redirects that don’t work. Can you please provide some guidance on how to make this work correctly, or at least what the limitations are?

Thanks,
Tom