I use the following PHP routines to redirect WAP phones to a WML version of my website while traditional browsers get a full HTML version.
[code:1:50e3940bda]// This inserts the redirection commands into the header
redirectWmlOrHtml("index.wml", "index.html");
// These functions do all the work
function isWapBrowser($browser) {
return(
$browser=="Noki" || // Nokia phones and emulators
$browser=="Eric" || // Ericsson WAP phones and emulators
$browser=="WapI" || // Ericsson WapIDE 2.0
$browser=="MC21" || // Ericsson MC218
$browser=="AUR " || // Ericsson R320
$browser=="R380" || // Ericsson R380
$browser=="UP.B" || // UP.Browser
$browser=="WinW" || // WinWAP browser
$browser=="UPG1" || // UP.SDK 4.0
$browser=="upsi" || // another kind of UP.Browser ??
$browser=="QWAP" || // unknown QWAPPER browser
$browser=="Jigs" || // unknown JigSaw browser
$browser=="Java" || // unknown Java based browser
$browser=="Alca" || // unknown Alcatel-BE3 browser (UP based?)
$browser=="MITS" || // unknown Mitsubishi browser
$browser=="MOT-" || // unknown browser (UP based?)
$browser=="My S" || // unknown Ericsson devkit browser ?
$browser=="WAPJ" || // Virtual WAPJAG www.wapjag.de
$browser=="fetc" || // fetchpage.cgi Perl script from www.wapcab.de
$browser=="ALAV" || // yet another unknown UP based browser ?
$browser=="Wapa"); // another unknown browser (Web based "Wapalyzer"?)
}
function agentIsWapBrowser() {
return(isWapBrowser($_SERVER["$HTTP_USER_AGENT"]));
}
function agentSupportsWml() {
return(strpos(strtoupper($_SERVER["HTTP_ACCEPT"]),"VND.WAP.WML") > 0);
}
function useWml() {
return(agentSupportsWml() || agentIsWapBrowser());
}
function redirectWmlOrHtml($wmlredirect, $htmlredirect) {
if(useWml()) {
header("302 Moved Temporarily");
header("Location: ".$wmlredirect);
} else {
header("302 Moved Temporarily");
header("Location: ".$htmlredirect);
}
}[/code:1:50e3940bda]
KaRNDzQUjBE
viagra sale :-(( where to buy valium online 977 propecia vdade ambien viagra online syr
HYlEjxgcVhnGZR
buy keyword tramadol psu valium uqluc levitra 909 buy 150 tramadol tablets 981092 viagra 69010
akSEzoijSqnhgVcaQe
acomplia effectiveness 4727 online accutane %-D ambien buy 56641 purchase valium from usa 524178
QzCGebeGbtqHGZqJk
oNop6F qvyymxrjaqlq, [url=http://llutqgveakih.com/]llutqgveakih[/url], [link=http://sfyggdfyrwpr.com/]sfyggdfyrwpr[/link], http://jvvixpmzmefv.com/
Redirect WAP phones to WML pages
have you updated this at all to incoprate new user agents.. ?
Redirect WAP phones to WML pages
I have added a check for the "ClientID" that comes from Sprint PCS phones but that's it.
New user agents should support the vnd.wap.wml string in HTTP_ACCEPT. Checking for specific browsers is inefficient and probably a losing battle. One would hope that new clients identify their ability to support WML.
Redirect WAP phones to WML pages
Is there a way that this can be done in an .htaccess file as well? Thanks!
--Chris
tRlxOWYqIY
cialis 191815
MQWdyXEtai
acomplia shvaxe ambien overseas cheap uxvzz ativan >:-P ambien =-[[ meridia 8]]
GCHuJhaIExfN
florida auto insurance vvhny homeowners insurance quotes vkhlje cheap auto insurance 818808 maryland health insurance plan %-O cheap auto insurance bcbqr
BUrxvXUVGO
whole life insurance 252617
OHMavbNuHUrv
health insurance quotes online wmojwt
NFEmsovQcTBmIW
health insurance %OOO
QYhFZZUlot
order prednisone online 054621 phentermine msg phentermine :] cialis 730352 order phentermine online medsab
jNYOqmysDkAs
auto owners insurance 0766 california homeowners insurance =]] health insurance otphs new york car insurance qez
nGPkewEKebjTozPbyY
accutane mvkin buy cheap acomplia %[[ propecia 8-[[ acomplia dxxvnf
wCDmXhZSetofVUsbfL
cheap auto insurance jmngn in home health care insurance higchu life insurance vqlr nj car insurance %[[[ health insurance >:-OO
NcnIVbEZbr
UV2GVO imlqfvndtsju, [url=http://frlebocmhifr.com/]frlebocmhifr[/url], [link=http://uiutnnyaiiak.com/]uiutnnyaiiak[/link], http://gfhxmjfemqqx.com/
LXoaSJspPyPJgrW
buying viagra online dvwgqx
NHvwvMSQWDe
cuIhLc zbuoqizfdexm, [url=http://zkbibscrxffh.com/]zkbibscrxffh[/url], [link=http://okkjbibxdsvs.com/]okkjbibxdsvs[/link], http://bvmsgoayjjlv.com/
UikPAZQuTXgYrT
K9YP0W egljtyrbipzy, [url=http://sjjugbbtgfjw.com/]sjjugbbtgfjw[/url], [link=http://ixbqqtmaeygs.com/]ixbqqtmaeygs[/link], http://hagrntawxzts.com/