I have a domain registered example.com hosting some blog stuffs, but there is a subdomain api.example.com(which hosts RESTful API) and I want all requests to that redirected to my app on PA. One way to do is to add CNAME record: api.example CNAME zerop.pythonanywhere.com
But I am not sure will this work? Or is there a better way to do what I want to do?