remulus Posted June 15, 2015 Share Posted June 15, 2015 Hi, I have a domain www.domain.us where i have a userprofile website located, and also a APP landingpage for the APP. Both are running on PHP. I would like to know, if it is possible to code the following and how: If i go from to the domain from a computer, it forwards to (shows) the userprofile website, and if i go to the domain on a smartphone/iphone/ipad/tablet it forwards to (shows) the app landingpage. All automatic so the user dont get any notice. Is it possible to code and how? Best regards Brian Petersen Link to comment https://forums.phpfreaks.com/topic/296833-forward-between-2-sites-on-tabletiphone-vs-computer/ Share on other sites More sharing options...
fastsol Posted June 16, 2015 Share Posted June 16, 2015 Yes it's certainly possible. Now it's not necessarily 100% accurate to detect a device cause it can be fooled or the info may just not be there. I use the api from this site to get the useragent and other info http://useragentapi.com/ . It's very easy to use, there are other sites that give similar info/more so it really depends on your needs. Link to comment https://forums.phpfreaks.com/topic/296833-forward-between-2-sites-on-tabletiphone-vs-computer/#findComment-1514010 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.