You could accomplish this in a requestPre filter by just using HttpRequest.setUri() to change the Uri.