fix wp rewrite