removal of port reference when redirecting