Domino redirection techniques for mobiles

If you visit http://news.bbc.co.uk/ or YouTube with a micro-browser the chances are you’ll be offered the chance to use the corresponding mobile site. Both will be using some kind of device detection using headers (name-value pairs) sent by the device or gateway with the request. If a mobile device is detected then a redirection allows the user to easily access device appropriate content. In an ideal world the redirection would be performed on the server

  1. The mobile client requests page http://host.yourdomain.com/

  2. The Web Server considers the request and the headers provided and tries to work out if the client is constrained (micro-browser)

  3. If the server can be sure it’s a micro-browser then it issues a 301 or 302 (see Permanent Redirect with HTTP 301) response with details of the new page location

  4. The Micro-Browser follows the redirect and requests the new page with minimal download of additional data Using this method the client doesn’t need to download a whole page only to be redirected to something more appropriate.

The question is: Is there a way to do this on Domino without changing the Web site’s source code? Like ISAPI filters for IIS?