PDA

View Full Version : html/php vs wml index files



real_illusions
January 23rd, 2006, 11:01 AM
hi

i'm currently trying to develop a mobile phone/device version of our website.

however, theres a bit of a problem.

the main index page is index.php

for the mobile phone, its index.wml

trying to access the page (www.examplesite.com) from a phone, it doesn't read or find the wml file, it tries to read the php index page, which obviously doesn't work. i know this from the site logs. i then changed the index.wml to home.wml, but that didn't work. however, if you put the index.wml in the web address, like www.examplesite.com/index.wml it works.

why does it do this? and how do you get the mobile phones to read the wml file without having to put that file onto the end of the web address??

:)

Sniper Jo
January 23rd, 2006, 11:39 AM
u need to create an apache handler to redirect wap requests to a certain file goggle it

real_illusions
January 23rd, 2006, 03:05 PM
hi there..thanks fo the reply.

however i cant work out what i need to change.

i've searched on google, maybe i'm searching wrong or clicking on the wrong things. i dont have direct access to the server, as the site is hosted elsewhere on a pro server place type thingie.

would it be best to ask them or can i alter it myself?

Sniper Jo
January 23rd, 2006, 04:55 PM
you may be able to direct them using php to find there browser type and direct to a specified file, i dont know what kind of headers a WAP browser would send though

real_illusions
January 23rd, 2006, 06:58 PM
thanks for your help so far.

anyone know what i can do to detect the wap browser and direct them to the index.wml ??