Need help with 301 redirect

salhammers

Junior Member
Joined
Jun 29, 2010
Messages
138
Reaction score
15
So I have a site that's indexed well in google and a mobile template that's ready to upload. Here's my question:

If I create a 301 redirect to a subdomain with the m.mydomain root folder, how can I get the site to pick up if it's being browsed by pc or mobile? Is this what the "user-agent" is for?

Please ask me any questions if you're not sure what I'm on about
 
Tera-WURFL ?
PHP:
require_once './TeraWurfl.php'; $wurflObj = new TeraWurfl(); $wurflObj->getDeviceCapabilitiesFromAgent();   // see if this client is on a wireless device if($wurflObj->getDeviceCapability("is_wireless_device")){ 	header("Location: website.name/"); }
 
Back
Top