replace HTTP_URL_PUB with BASE_URL