pages rewrite