In fact that, via .htaccess, i can do that with these code which are not so pretty.
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_USER_AGENT} iPhone
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$
RewriteRule ^(.*)$ index.php?r=mobile/$1 [QSA,PT,L]
RewriteCond %{HTTP_USER_AGENT} !iPhone
RewriteRule ^.*$ - [NC,L]
But in this method, when i set the urlManager in config/main.php, i get the error.
so, please help me, how to redirect to a module when the user using a phone to visit?
Is that the setting in .htaccess is not ok? or is there another way to do that?
Thank you very much.