Hi Phranque,
here is the re-direct code;
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ [
example.com...] [R=301,L]
RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc|opera" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "mini|nitro|j2me|midp-|cldc-|netfront|mot|up\.browser|up\.link|audiovox"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "blackberry|ericsson,|panasonic|philips|sanyo|sharp|sie-"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "portalmmm|blazer|avantgo|danger|palm|series60|palmsource|pocketpc"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC]
RewriteRule ^(.+)\$ http://m.example.com/$1 [R=302,NC]
i am using this code for other websites i have and i don't have any problem with those. But somehow CloudFare refuses to re-direct mobile users to mobile website.
Thanks for your reply,,,,
[edited by: phranque at 11:36 pm (utc) on Jan 21, 2015]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]