rewrite php to html