I have built a mobile version of my website and am using code found here [url=“http://detectmobilebrowsers.com/”]http://detectmobilebrowsers.com/[/url]
I tried adding the code to my .htaccess file which works but only for the home page. I tried the php version of the code but this produced session errors i.e. headers already sent.
Where can I put the code so that it will work on any page but not cause any errors.
The main shop is an old 1.3.5 version.
I then edited /skins/your_active_skin_name_here/customer/index.tpl by pasting the code below just before the closing head tag
Now every page on the front end of my store checks to see whether the visitor is using a mobile device and if true redirects to my mobile store.