jessica@bluelaserdesign.com Posted April 13, 2006 Share Posted April 13, 2006 I am really new to this... I am tryin to figure out how to redirect someone that comes to my website from a mobile device to a different page that is opitmized for mobiles. I can't figure out how to make it work. Please help Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted April 13, 2006 Share Posted April 13, 2006 hmm.. I'm guessing that the $_SERVER['HTTP_USER_AGENT'] should contain a clue as to who is hitting your site. I wish I knew which keywords you could search for -- check your logs for the mobile browsers.for the sake of discussion, we'll say all of the browsers have the word "mobile" in them.[code]<? if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']),"mobile") header("Location: mobilepage.html");?>[/code]hope that helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.