Community

Redirect users to another uri when the visit that url from a mobile device

Hi,
I am using mobile tools. This module allows you change the homepage when you come in from a mobile device, however due to I have a node with flash, I also need to redict the users to another url when the come in from a mobile device.

What is the best way I can do this?

Thanks you!

Comments

You can do this based on user

You can do this based on user agents. I found a tutorial to do this on Apache level, perhaps that works for you. Haven't found a Drupal module to do such a thing.

One work around in Drupal I can think of is to create a separate tpl.php for that specific node and detect the user agent in PHP in the template.

=-=

http://drupal.org/project/browscap would aid in recognizing the user agent

nobody click here