Hi guys,
Also here is an example how to perform ModRewrite Auto-Redirects from Full Website to Mobile. I hope someone will find this useful since I spend quite some time getting to work :)
RewriteCond %{HTTP_HOST} ^www\.jurmala\.com$ [NC]
RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|js|css|ico) [NC]
RewriteCond %{HTTP_REFERER} !^
http://www\.jurmala\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^
http://m\.jurmala\.com/.*$ [NC]
RewriteCond %{HTTP_USER_AGENT} !"playbook-mobile|ipad|sch-i800|xoom|playbook|kindle|tablet|tablet-mobile" [NC]
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|mobile|palmos|webos|googlebot-mobile" [NC]
NOTES:
1. "playbook-mobile|ipad|sch-i800|xoom|playbook|kindle|tablet|tablet-mobile" - list of possible keywords in Tablet User Agent (they added as Exclusions so Auto-Redirect is not performed on then and they can see full website as normal Browsers). Example, iPad, Samsung Galaxy Tab, Sony PayBook and so on
2. "android|blackberry|iphone|ipod|iemobile|mobile|palmos|webos|googlebot-mobile" - list of possible keywords in Mobile / Smartphone User Agent.
DA