Support multiple rewrites rules.