Redirecting ?amp=1 to non-amp pages

Hi,

I’ve build a new website using the same URL structure as my old website.
With my new site, I am no longer using AMP, so need to make a rewrite rule that takes any URL’s with ?amp=1 appended and simply remove that, so that visitors to the old amp URL’s will simply be redirected to the natural page path. It’s not clear in the documentation how I can do that as it seems something must always be replaced with something else.

So for exmaple I need to replace:

www.example.com/product/product123/?amp=1

with

www.example.com/product/product123

I’m not 100% sure whether I should be using a transform or a redirect rule or what the “rewrite to” expression should be since I simply want to remove the /?amp=1 part.

I’ve experimented a few ways, but nothing seems to have worked.

Can anyone help?