Finally fixed the downloading and redirects.