Cancelled

mobi switcher

Our desktop site is [url removed, login to view]

our mobile site is [url removed, login to view]

I wish to detect the browser redirect mobile browsers from our destop site to our .mobi site

Our .mobi site uses instant mobilizer and I managed to get a switcher working in our test subdomain, but when I apply this code to our main domain instant mobilzer instant mobilizer returned an error.

this is what I tried (added to [url removed, login to view])

$mobile = "[url removed, login to view]";

$text = $_SERVER['HTTP_USER_AGENT'];

$var[0] = 'Mozilla/4.';

.....

$var[67] = 'Android';

$result = count($var);

for ($i=0;$i<$result;$i++)

{

$ausg = stristr($text, $var[$i]);

if(strlen($ausg)>0)

{

header("location: $mobile");

exit;

}

}

I am thinking it maybe better to use a .htaccess redirect. but am open to any suggestions.

Skills: HTML5, jQuery / Prototype, Mobile App Development, PHP, Website Design

See more: website switcher, browsers for android, android browsers, mobi mobile net, design mobi, test website for error, mobi, php mobilizer, browser detect, wish android, htaccess detect mobile, detect browser redirect, redirect mobile desktop, subdomain php code, htaccess mobile desktop, browser redirect, http redirect code, android php code, android http header, php browser detect, htaccess desktop mobile redirect, detect mobile redirect, android test code, code location android, mobile website redirect

About the Employer:
( 8 reviews ) Chapel Hill, United States

Project ID: #1253850

4 freelancers are bidding on average $30 for this job

jDevAndDesign

please check your pmb

$30 USD in 1 day
(158 Reviews)
6.7
GFsoul

sir i can do this, u dont need to worry about that.

$30 USD in 1 day
(102 Reviews)
6.1
phenodesign

I can help you right now with this code.

$30 USD in 0 days
(24 Reviews)
5.8
Peterpay

hi i can do this check pmb

$30 USD in 0 days
(15 Reviews)
4.6