Sorry for getting back to this 8 months later. Been busy.
return true;
exit();
header(’Location: http://www.blah.com/’);
I didn’t see the above anywhere in the snippet.
The sendRedirect could work if it had "sniffing added to it. I’m exploring this topic further. Eventually I want to have a few capabilities in one snippet:
1. Option one is loading a CSS file for handhelds/phones. (The above code/code below didn’t work. It gave me a blank page even though the file was present)
if(detect_mobile_device()){
header('Location: http://andymoore.mobi/');
exit;
}
2. Load a mobile template. Could be the best option? because it gives designers a concrete template to tweak
3. Redirect to a mobile subdomain. For SEF purposes this isn’t really an option; it’s a poor man’s workaround because search engines would view it as a completely separate domain. Options 1 and 2 seem to cover the most ground.