April 21, 200917 yr Hi guys. I have my Website. http://www.domain.com and I want to point it to http://www.domainmobile.com when it's viewed on any mobile browser. How would I go about doing this? Thanks, Seth
April 21, 200917 yr Id Imagine youd want to be checking the user agent, if user agents is a mobile browser whisk them off to the second domain
April 21, 200917 yr Take a look at the code from here. Should give you an idea of how to go about checking the user agent.
April 22, 200917 yr Author Okay great thanks guys. One question. I have the function: <?php include('mobile_device_detect.php'); mobile_device_detect(true,true,true,true,true,true,'http://www.gmedia18.com',false); ?> Where do I put it? HELP! Edited January 31, 201016 yr by Sam G added [code] tags
April 22, 200917 yr http://www.kevinbradwick.co.uk/?p=106 I wrote an article on it a while back. The principle uses the USER_AGENT variable to check for mobile browser. The drawback is obtaining a comprehensive list of user agents, I haven't spent enough time on this myself...
April 22, 200917 yr http://www.kevinbradwick.co.uk/?p=106 I wrote an article on it a while back. The principle uses the USER_AGENT variable to check for mobile browser. The drawback is obtaining a comprehensive list of user agents, I haven't spent enough time on this myself... ..looking at my code, I would rewrite it using the in_array() function, reducing lines of unnecessary code...
Create an account or sign in to comment