the rewrite block sets the request URI, but we read the URI here in httpresourcehandler.