I just made my first jQuery mobile site.
I want to have people that view my \"Full Site\" with a mobile phone automatically get transferred to the \"MOBILE SITE\".
There are multiple ways listed here, including PHP.
The jQuery one sets the variable jQuery.browser.mobile
:
/**
* jQuery.browser.mobile (http://detectmobilebrowser.com/)
*
* jQuery.browser.mobile will be true if the browser is a mobile device
*
**/
After this you can redirect with ordinary JS, like this:
if(jQuery.browser.mobile) window.location = 'mobile_url';
Remember that it's not good to redirect the user on every page. Either make a separate mobile site or do it server-side (with e.g. PHP).