Hope you are doing well.
Attaching a screenshot of your rule which will help achieving your requirement with Status Code 301:-
You can change the condition of this URL as per your requirement.Just the instead setting Redirtect.URL use this as value for the Location header. Location value can be set with Redirect.URL part as per your screenshot.
Worked like a charm.
Thanks a lot for your help.