|
原理:添加web服务器MIME类型,添加默认页index.wml
基本包括:
text/vnd.wap.wml .wml
image/vnd.wap.wbmp .wbmp
application/vnd.wap.wmlc .wmlc
text/vnd.wap.wmls .wmls
application/vnd.wap.wmlsc .wmlsc
Apache的加入方法:
1.>如果服务器是自己的,请在mime.types加入以上代码.
2.>如果服务器是租用的,并且支持AllowOverride FileInfo Indexes.那么可以在web目录下创建一个文件.htaccess,内容为:
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmls .wmls
AddType application/vnd.wap.wmlsc .wmlsc
DirectoryIndex index.wml index.php
IIS6加入方法:找到添加MIME类型的选项.分别添加:
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmls .wmls
AddType application/vnd.wap.wmlsc .wmlsc
DirectoryIndex index.wml index.php
如果还要支持手机mmf铃声下载,java游戏下载,还需要添加相应的MIME类型 |
|