Fixe rewrite rules. Update the documentation.