Correctly create URL for sites that are not in the root dir.