Automatic redirection http => https for api subdomain