Add rewrite plugin