Redirecting serverless deploy endpoint to my own domain name (NOT in Route 53)

Hello,

I am trying to redirect traffic from the endpoint generated by serverless deploy to a subdomain I have created on my own domain name.

Example being:

serverless deploy
endpoints:
  GET - https://abcd123456.execute-api.eu-west-1.amazonaws.com/dev/whatever/some-function

I want requests to my subdomain:

api.my-domain.co.uk/dev/whatever/some-function

to redirect to the endpoint generated above:

https://abcd123456.execute-api.eu-west-1.amazonaws.com/dev/whatever/some-function

I have tried setting up a 301 redirect with my hosting provider, but the full path does not seem to be preserved during redirect (i.e /dev/whatever/some-function is not preserved, it is dropped).

Am I supposed to be using serverless domain manager for this with some configuration in my serverless.yml? Note that I am not using Route53 at any stage for domain registration and management.

Thank you