Trying to make it so that all http calls are permanently redirected to https when in production mode