set http protocol for redirect