Added redirect option for http -> https