Fixed redirection bug on digitalocean server