Forum Moderators: phranque
#Redirect if mobile device
RewriteCond %{HTTP_USER_AGENT} android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge\ |maemo|midp|mmp|opera\ m(ob|in)i|palm(\ os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows\ (ce|phone)|xda|xiino [NC,OR]
RewriteCond %{QUERY_STRING} ^name=News&file=article&sid=([0-9]+)$
RewriteRule ^modules\.php$ http://www.example.com/modules.php?name=News&file=article_mobi&sid=%1 [R=301,L]
RewriteCond %{HTTP_USER_AGENT} !iPad|Galaxy\ Tab [NC]