Need help with 301 redirect

Discussion in 'Web Design' started by salhammers, Sep 18, 2011.

  1. salhammers

    salhammers Junior Member

    Joined:
    Jun 29, 2010
    Messages:
    138
    Likes Received:
    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
     
  2. KlaAz0r

    KlaAz0r BANNED BANNED

    Joined:
    Jan 11, 2011
    Messages:
    721
    Likes Received:
    852
    tutsplus has an article for you, google it : )
     
  3. appman360

    appman360 Newbie

    Joined:
    Sep 21, 2011
    Messages:
    12
    Likes Received:
    5
    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/"); }