Jump to content

Archived

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

jessica@bluelaserdesign.com

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.

Share this post


Link to post
Share on other sites

×

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.