Redirect website to mobile site and from mobile to desktop?
问题 How can I handle the situation if the user wants from mobile to go to desktop site? I am using this library for redirect to mobile, and how to create a redirect. The code below is that I am using mobile_detect.php library: require_once 'controller/Mobile_Detect.php'; $detect = new Mobile_Detect; // Any mobile device (phones or tablets). if ( !$detect->isMobile() ) { //the link to mobile site } But how to handle vice versa? Thanks for helping 回答1: <a href="self.php?desktop=1">Switch to desktop