Forum Moderators: phranque

Message Too Old, No Replies

setting index.wml as default page

         

Eddie1506

9:08 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



i am creating some wap pages for my site! they are situated in wap/ subdirectory of the root dir. my global .htaccess file is set to deny directory listing. now when i try to browse to my wap site with my cell phone and enter url www.mysite.com/wap/index.wml i can open my page with no problems, but when i type in www.mysite.com/wap/ i get access denied, offcourse!

my question: is it possible to make index.wml appear by default, when i enter url without explicitly putting down index.wml.

i tried to put "DirectoryIndex index.wml" in the .htaccess file in wap directory but with no success. i only get internal server error!

Thanks in advance!

jdMorgan

9:22 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Eddie1506,

Oooh! Cool question...

I'd suggest enabling directory listings, and then trying the DirectoryIndex index.wml again.

Also, make sure that the server has a definition for the MIME-type of wml files - Use AddType if not.

These are just general suggestions, but I'm intersested to know what you find out and what the solution is... I'd like to add a few phone-friendly pages myself, sometime soon.

Jim

Eddie1506

9:30 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



tried to turn on directory listing. it didn't work. mime type of wml file is added allready.

Eddie1506

9:49 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



hm... i just tried one thing and it seems to be working. i haven't been able to test it with my cell phone 'cos i have a prepaid account and i'm little short on credits! i tested it with online wap browser!

the solution is to rename index.wml to index.html. this way the index page will show without any errors and without need for enabling directory listing!

@jdMorgan maybe you would like to test it for me? if you do, leave your mail so i can send you the link!

EDIT: does this board have private messaging? i can't seem to find it anywhere! if it does i can send you the link through a pm!

jdMorgan

10:20 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't test it directly either - But I've had a few inquiries on my sites about WML.

Stickymail link is at the top left of any WebmasterWorld page after your username, or alternately in the control panel (link also at the top left of any WebmasterWorld page).

I wonder why Apache doesn't handle the .wml extension... Not the last mystery I'll find, I'm sure.

Jim