typo error handler_rewrite -->  rewrite_handler