html file rewrite