Make redirect aware of port