|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.htaccess and mime troubles ;-(
Hi guys.
i've had a wap site for over a year now, but have just moved hosts. Now my wap site dosnt work I think it might have somthing to do with mime types and htaccess files? Does anyone have the best htaccess file for wap sites - to cover ringtones (mid mp3) wallpapers (gif jpg) and the rest (sis 3gp, etc) My wap site is currently working, up to the point when the user can download the file. The online wap browser error somes it up. (on phone i can browse the site, upto the download, just like the emulator) I get this message: Wrong mime-type, I got image/jpeg, but I want text/vnd.wap.wml. This error occurs when you request a page that is not a WAP page, or when the webserver isn't set up correctly for hosting WAP sites This is a direct link to an image, so i thought that it would want a image/jpeg mime type? Anyways, any help would be great. Thanks very much. (p.s my current .htaccess file is this ![]() Code:
AddType text/vnd.sun.j2me.app-descriptor jad AddType application/java-archive jar AddType text/vnd.wap.wml wml AddType audio/amr amr AddType audio/midi mid AddType audio/midi midi AddType application/vnd.Nokie.ringing-tone rng AddType application/vnd.symbian.install sis AddType application/vnd.wap.wmlc wmlc AddType text/vnd.wap.wmlscript wmls AddType text/vnd.wap.wmlscript wmlsc AddType application/vnd.wap.sic sic AddType text/vnd.wap.si si AddType text/vnd.wap.sl sl AddType application/vnd.wap.slc slc AddType text/x-vCalendar vcs AddType text/v-vCard vcf AddType application/vnd.nokia.gamedata nqd AddType application/x-nokiagamedata ngd AddType image/vnd.wap.wmbp wbmp AddType image/x-bmp bmp AddType image/x-epoc-mbm mbm AddType image/vnd.nok-3dscreensaver n3a AddType text/x-co-desc cod AddType image/vnd.nok-oplogo-colornokia-op-logo nok AddType application/x-pmd .pmd AddType audio/vnd.qcelp .qcp AddType application/x-smaf .mmf AddType application/vnd.smaf Regards |
|
#2
|
||||
|
||||
|
Hello and welcome to Dev Shed.
Sounds to me like you're using wapsilon or somewhere similar, if you view a jpg through that it will error as it is expecting wml. There are a few posts in here with reference to .htaccess and mime types, use the search box on the top right of the site to find them.
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
Ok matey cheers.
I looked around, and searched, and changed my .htaccess file to this: Code:
AddType image/vnd.nokia.ota-bitmap ota AddType text/vnd.sun.j2me.app-descriptor jad AddType application/java-archive jar AddType text/vnd.wap.wml wml AddType audio/amr amr AddType audio/mid mid AddType audio/midi midi AddType application/vnd.Nokie.ringing-tone rng AddType application/vnd.symbian.install sis AddType application/vnd.wap.wmlc wmlc AddType text/vnd.wap.wmlscript wmls AddType application/vnd.wap.sic sic AddType text/vnd.wap.si si AddType application/vnd.wap.slc slc AddType text/x-vCalendar vcs AddType text/v-vCard vcf AddType application/vnd.nokia.gamedata ngd AddType image/vnd.wap.wmbp wbmp AddType image/x-bmp bmp AddType image/vnd.nok-3dscreensaver n3a AddType text/x-co-desc cod AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType application/vnd.wap.wmlc .wmlc AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlscriptc .wmlsc AddType application/vnd.smaf .mmf AddType audio/x-mpegurl m3u Got exactly the same result, pages browse fine, but when it comes to downloading the image, theres no joy ![]() -- like i say, this wap site worked fine on my other host with the same .htaccess file, is there somthing i can do to see if the htaccess file is being used correctly, or can anyone say why its not working? Regards. |
|
#4
|
||||
|
||||
|
Post a URL.
What are you viewing this on when you get the error? |
|
#5
|
|||
|
|||
|
***REMOVED***
Cheers man, i've sorted it. Thanks for all your help!!! Regards. ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > .htaccess and mime troubles ;-( |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|