only redirect http traffic in production mode