i found a script to link to an subdomain if you are on a mobile site. but how can i manage to have a button on my mobile site to link to the full view-non-subdomain in php?
heres the code:
if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') ||
strstr($_SERVER['HTTP_USER_AGENT'], 'Android')) {
header('Location: http://m.ihreseite.ch');
exit();
}
thanks
This can give you an idea. You can set it basicly to session and get this session variable. Check each page if visitor choose mobile or real website. Then redirect them to website which they want to surf.