rewrite template/html&htm