retains port info for local siteurl

details in issue #12