Respect port numbers in structural URLs