Add support for the rewritemap directive