redirect to custom domain with preferred protocol