My next question is regarding mobile redirects. Would it be easier to us a JS method? Currently on Linux we use the htaccess file to do the detection/redirection. Do you have experience with that? This is what we use:
#########################
# Mobile Redirect Start #
#########################
RewriteEngine on
RewriteBase /
# If there is a query string of &m=0, set a cookie to direct mobile traffic to the full site, and skip the next rule
RewriteCond %{QUERY_STRING} (^|&)m=0(&|$)
RewriteRule ^ - [CO=mredir:0:www.URL_OF_WEBSITE.com]
# Checks if the user agent is a mobile device
RewriteCond %{HTTP:x-wap-profile} !^$ [OR]
RewriteCond %{HTTP:Profile} !^$ [OR]
# MOBILE DEVICES #
# Amazon Kindle:
RewriteCond %{HTTP_USER_AGENT} kindle [NC,OR]
# Android:
RewriteCond %{HTTP_USER_AGENT} android.*mobile [NC,OR]
# Apple:
RewriteCond %{HTTP_USER_AGENT} iphone [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ipod [NC,OR]
# Barnes & Noble Nook:
RewriteCond %{HTTP_USER_AGENT} nook [NC,OR]
# BlackBerry:
RewriteCond %{HTTP_USER_AGENT} blackberry [NC,OR]
# Palm:
RewriteCond %{HTTP_USER_AGENT} palm [NC,OR]
RewriteCond %{HTTP_USER_AGENT} pixi [NC,OR]
RewriteCond %{HTTP_USER_AGENT} blazer [NC,OR]
RewriteCond %{HTTP_USER_AGENT} eudoraweb [NC,OR]
RewriteCond %{HTTP_USER_AGENT} xiino [NC,OR]
RewriteCond %{HTTP_USER_AGENT} webos [NC,OR]
# Windows Mobile:
RewriteCond %{HTTP_USER_AGENT} "windows ce" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} iemobile [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "windows phone" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "windows mobile" [NC,OR]
# PHONE MANUFACTURERS #
# LG phones:
RewriteCond %{HTTP_USER_AGENT} LG [OR]
# Motorola phones:
RewriteCond %{HTTP_USER_AGENT} ^mot- [NC,OR]
# Nokia phones:
RewriteCond %{HTTP_USER_AGENT} nokia [NC,OR]
# Samsung SGH model phones:
RewriteCond %{HTTP_USER_AGENT} ^SEC-SGH [OR]
# Sony/Ericsson:
RewriteCond %{HTTP_USER_AGENT} ^SonyEricsson [OR]
# SymbianOS phones:
RewriteCond %{HTTP_USER_AGENT} symbian [NC,OR]
# Vodafone devices:
RewriteCond %{HTTP_USER_AGENT} vodafone [NC,OR]
# GAME CONSOLES #
# Nintendo DS:
RewriteCond %{HTTP_USER_AGENT} nitro [NC,OR]
# Sony PSP:
RewriteCond %{HTTP_USER_AGENT} PSP [OR]
# MOBILE BROWSERS #
# ARM processor:
RewriteCond %{HTTP_USER_AGENT} chtml [NC,OR]
RewriteCond %{HTTP_USER_AGENT} wap [NC,OR]
RewriteCond %{HTTP_USER_AGENT} midp [NC,OR]
RewriteCond %{HTTP_USER_AGENT} j2me [NC,OR]
RewriteCond %{HTTP_USER_AGENT} brew [NC,OR]
# Avantgo:
RewriteCond %{HTTP_USER_AGENT} avantgo [NC,OR]
# DDIPOCKET (AIR-EDGE, AirH"):
RewriteCond %{HTTP_USER_AGENT} ddipocket [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^PDXGW [OR]
# DoCoMo:
RewriteCond %{HTTP_USER_AGENT} docomo [NC,OR]
# Maemo:
RewriteCond %{HTTP_USER_AGENT} maemo [NC,OR]
# Minimo (Firefox Mobile):
RewriteCond %{HTTP_USER_AGENT} minimo [NC,OR]
RewriteCond %{HTTP_USER_AGENT} fennec [NC,OR]
# NetFront:
RewriteCond %{HTTP_USER_AGENT} netfront [NC,OR]
# Openwave UP.Browser:
RewriteCond %{HTTP_USER_AGENT} up\.browser [NC,OR]
RewriteCond %{HTTP_USER_AGENT} up\.link [NC,OR]
# Opera Mobile/Mini:
RewriteCond %{HTTP_USER_AGENT} "opera mobi" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "opera mini" [NC,OR]
# Plucker:
RewriteCond %{HTTP_USER_AGENT} plucker [NC,OR]
# ProxiNet:
RewriteCond %{HTTP_USER_AGENT} ProxiNet [OR]
# Psion (EPOC OS):
RewriteCond %{HTTP_USER_AGENT} EPOC [OR]
# ReqwirelessWeb J2ME MIDP library:
RewriteCond %{HTTP_USER_AGENT} reqwirelessweb [NC,OR]
# Tear:
RewriteCond %{HTTP_USER_AGENT} tear [NC,OR]
# UCWEB:
RewriteCond %{HTTP_USER_AGENT} ucweb [NC,OR]
#HP (Must be at the end to negate HP's Tablet:
RewriteCond %{HTTP_USER_AGENT} hpwos [NC]
RewriteCond %{HTTP_USER_AGENT} !tablet [NC]
# Check to see if user is already on the mobile site
RewriteCond %{HTTP_HOST} !^m\.
# Can not read and write cookie in same request, must duplicate condition
RewriteCond %{QUERY_STRING} !(^|&)m=0(&|$)
# Check to make sure we haven't set the cookie before
RewriteCond %{HTTP_COOKIE} !^.*mredir=0.*$ [NC]
# Redirect user to the mobile site
RewriteRule ^ http://m.URL_OF_WEBSITE.com [R=301,L]
#######################
# Mobile Redirect End #
#######################