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


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
  GET -

I want requests to my subdomain:

to redirect to the endpoint generated above:

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