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?
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.
LikeLike
Mikkel,
I have improved your string to the following !
ReWriteCond %{REQUEST_URI} !^/mobile.*
ReWriteCond %{HTTP_USER_AGENT} .*Mobile.*Safari
ReWriteRule ^(.*)$ <protocol>://<FQHN>mobile
LikeLike
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 🙂
LikeLike