support for URI/method rewriting