Only rewrite http and https