Serve the mobile version of a site to desktop visitors too (DESKTOP USER-AGENTS) ?

Discussion in 'Blogging' started by ltrading, Nov 5, 2013.

  1. ltrading

    ltrading Newbie

    May 14, 2013
    Likes Received:
    I'm looking to serve the mobile version of a site to ALL devices. Currently I use a plugin to serve a mobile version to mobiles & tablets.

    I assume that I need to add all desktop user-agents to the plugins code in a similar way to the code that detects all mobile user-agents.

    I'm unsure where to get a list like this as most of what I can find is geared towards detecting mobile traffic, so...

    Does anyone know where I could get a list of all Desktop user-agents and the code to add into the plugin alongside the mobile detection code to serve the mobile version to desktop visitors too?

    Thanks for any ideas
  2. qrazy

    qrazy Senior Member

    Mar 19, 2012
    Likes Received:
    Banana Republic
    If you want to redirect all the users, regardless of the device, to mobile site, You can simply do it in the .htaccess itself instead of using the plugin and adding all the desktop user-agents in it.

    You can find the list of all browser's user-agent here