removes html rewrite