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 bleedyellow.com/mobile 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?

Published by

lekkim

Positive, competent, out-spoken, frank and customer focused architect and developer with a strong foundation in web, cloud and product development. I'm a strong advocate for API first and cloud based solutions and development. I have a knack for being able to communicate and present technically complicated matters in conference, customer and training settings. I've previously acted as team member and leader in a product organisation.

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

  1. Oh one thing – do remember to put this rewrite rule set above the rule set for setting the default feature, if any, as this is a special case for the default feature.

  2. Mikkel,

    I have improved your string to the following !

    ReWriteCond %{REQUEST_URI} !^/mobile.*

    ReWriteCond %{HTTP_USER_AGENT} .*Mobile.*Safari

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

  3. 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.