To use the media redirection to another environment Add to .env file MEDIA_URL="https://www.example.com"