Added HTTP redirection
Minor fixes