fixed https redirect rule + spec tests