After Mobile Redirect Not Working
I have a bit of php code on index.php of my main site, here... http://dominionroofing.com/
This code redirects visitors on mobile browsers to my mobile version of the site, here... http://dominionroofing.com/m/
On the mobile site, the visitor has the option to view the full site, as follows...
Here is the part of the php code that is supposed to redirect to the desktop if the link is clicked...
<a href="http://dominionroofing.com/?mode=desktop">View Full Website</a>
However, this is not working, at least not for me on my iphone. I have this exact code installed on quite a few other sites, and it works on all of them but this one. Hosting is GoDaddy shared host, but I have at least two other sites installed on GoDaddy servers that are working perfectly.
$mode = "mobile";
$mode = "desktop";
$mode = is_mobile() ? "mobile" : "desktop";
if ($mode == "mobile")
header ("Location: http://dominionroofing.com/m/");
Any and all help is much appreciated.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread