Automatically redirect iPhone users to the mobile UI of Lotus Connections

If you’re running Lotus Connections 2.5 and you installed the mobile interface you really should redirect your mobile users to this interface and not have them remember the URL to the mobile interface. By default users need to specify http://<hostname>/mobile to access the mobile interface (see if you want to see what it looks like) which is not what you want. You want it to happen automatically. To accomplish this simply use mod_rewrite to automatically redirect the user based on the User-Agent of the accessing browser (much like setting the default feature).

To add a mod_rewrite rule to automatically redirect iPhone users add the following to your httpd.conf and restart IHS. Doing the same for Nokia S60 users should be equally easy if you know the User-Agent for those phones.

RewriteCond %{HTTP_USER_AGENT} "^Mozilla/[0-9].[0-9] (iPhone.*"
RewriteRule  ^/?$ /mobile [R,L]

Easy isn’t it?

3 thoughts on “Automatically redirect iPhone users to the mobile UI of Lotus Connections”

  1. Mikkel,

    I have improved your string to the following !

    ReWriteCond %{REQUEST_URI} !^/mobile.*

    ReWriteCond %{HTTP_USER_AGENT} .*Mobile.*Safari

    ReWriteRule ^(.*)$ <protocol>://<FQHN>mobile


  2. Forgot to tell what is improved

    With this rewrite condition you have not only the iPhone users but also the iTouch users !

    And you are forcing them to use the mobile interface like this instead with your redirection they only would redirected to the mobile interface when they conect to the root of your webserver.

    Hope this is of any addition to you m8 or anybody else 🙂


Comments are closed.