new way to implement http redirection. based on Heroku support suggestion.