This will route anything from /confirm* to the AccountPage_Controller. From there you can process either by action (/confirm/me to AccountPage_Controller function me()) or by handling it in the index() function.

All values passed on the URL will be available in the array $this->urlParams. So with the above rule in place in your AccountPage_Controller: