Https redirection issue fixed

Fixed https redirection issue