Added http to https rewrite