Hello,

I have some problems with WAP detecting and redirecting wap browsers. Any
help is welcome.

This is the situation:

I have a directory (say /wap) with all the wap cfm templates. That directory
has a special application.cfm template for WAP application.
In that template we put something like:

<cfif NOT (UCase(Cgi.http_accept) Contains "WML")><cflocation
url="/YouDontHaveaWapBrowser.cfm" addtoken="No"><CFABORT></CFIF>

and it works ok with both: web browsers and wap devices.

Now, We want to use WAP.mydomain.com  Our hosting provider says we have to
use a redirection script. I mean: to detect what subdomain is requested with
CGI.SERVER_NAME variable and redirect to the right directory/template.

We put in the main application.cfm template something like this:

<cfif UCase(CGI.HTTP_ACCEPT) Contains "WML"><cflocation url="/wap/index.cfm"
addtoken="No"><cfabort></CFIF>
<cfif  FindNoCase("wap.","#CGI.SERVER_NAME#")><cflocation
url="/YouDontHaveaWapBrowser.cfm" addtoken="No"><cfabort></cfif>

But the server seems to be in loop or something....

Did someone have a similar problem?

TIA,

~Jaav
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to