I would like to know how to redirect a subdomain (like api.domain.com), which will be used in a HttpPost request, to a specific file in main domain (like domain