Dynamic redirect $1

I’m trying to create a dynamic redirect as per example:

from ‘example.com/page?f=1234’ to ‘example.com/page

(starts_with(http.request.uri.query, “f=”))

I am at a loss to what the URL redirect expression should be?

Thanks for your time.