this is to fix #1678876, as we can now access the site URI without fooling around SERVER_NAME vs HTTP_HOST