Jump to content

please help... need mobile redirect


Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.