Forum Moderators: open
How can I go about this? Browser detection? IP ranges? Something else?
Also, does anyone know of any good WAP tutorials? I have been reading the W3C guidelines, just looking for more resources :)
Thanks.
[edited by: tedster at 6:47 pm (utc) on July 25, 2004]
[edit reason] use example.com [/edit]
I've tested this using a range of different wap devices and it works fine for me. Not sure how fool proof this method is though to be honest.
The code I use is:
<CFIF #CGI.HTTP_ACCEPT# CONTAINS "text/vnd.wap.wml"> <CFLOCATION URL="http://wap.example.com"> </CFIF>
Here it is:
<?
if(preg_match("/vnd.wap.wml/",$_SERVER['HTTP_ACCEPT'])){
header("Location: http://wap.mysite.com/");
exit;
}
?>
This Works for me...
David Middlehurst
[edited by: tedster at 6:51 pm (utc) on July 25, 2004]
[edit reason] splice two threads [/edit]