fix port redirect with subdomain