1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Load different homepage depending on mobile/laptop?

Discussion in 'Web Design' started by xLucky7, Feb 7, 2016.

  1. xLucky7

    xLucky7 Registered Member

    Joined:
    May 17, 2013
    Messages:
    59
    Likes Received:
    17
    Anyone know how to do this? I want to be able to detect if someones on a mobile device and if so, link them to another page of my site and put a content locker. I dont want to just have it on the whole site but just a page where i link the mobile users to.

    Any easy way to do this? Im just starting with this stuff
     
  2. thedorf

    thedorf Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,223
    Likes Received:
    721
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    do a quick Google search for "mobile detection script" and you'll see plenty of free ones out there already. Find one written in PHP (as opposed to Javascript) and you can use the PHP redirect function on page load if mobile.
     
    Last edited: Feb 7, 2016
  3. xLucky7

    xLucky7 Registered Member

    Joined:
    May 17, 2013
    Messages:
    59
    Likes Received:
    17
    Is there a reason why you suggest the php one instead of Java? I found the java one and was gonna try that (since I took some classes) on it, so I was just gonna use that.