There is an example at the bottom of this post Configuring an External Splash Page for Captive Portal