Add rewrite to docs