/    Sign up×
Community /Pin to ProfileBookmark

mobile redirect upgrade

I need some help in how to do the following redirect to a mobile phone in php. I’m using a js redirect but I need something more sophisticated. I’ve searched and found several php scripts that haven’t worked for me possibly because I’m a php noobie. Here is what I would like:

  • detects “most” mobile small screen devices including iphone, Android …..

  • redirects from the main site to a mobile site

  • code for a link-back to the main site from the mobile site that will prevent a do loop that tries to link back to the mobile site.
  • A final question I have is: must the main and mobile site pages both be php? Can I just rename the page’s extension to dot php to make a php script run properly on them?

    Your help will be appreciated.

    to post a comment
    PHP

    0Be the first to comment 😎

    ×

    Success!

    Help @DocRock spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...