Hi guys,
I have a desktop site and a mobile/tablet version of the site too. I need a PHP script to go in the index.php file which essentially says, if viewing on a mobile/tablet device switch to the mobile URL but if viewing on desktop, continue loading the rest of index.php.
I’ve found loads of scripts but they all seem to be something that redirects to two URLs - one to a mobile site or one to a desktop version - really, I need a script that will sit at the top of the existing index page and either redirect to the mobile URL or continue to load index.php.
Does anyone know how I can do this or have any ideas how I can do this?
Thank you very much for any help.
SM