This "fixes" a problem with apps running on a port during development.
If the site's path doesn't match, this tries again with the port if
it's not 80.