Add rewriting rules