removed rewrite so we can use http and https