PDA

View Full Version : .htaccess (wap)


Bounce
08-18-2004, 08:44 PM
hi all

i'm trying to create a wap site but not sure wot code etc to add to the .htaccess file

tried various like


AddType image/gif
AddType text/html
AddType image/x-png
AddTypetext/plain application/pdf
AddType application/msword
AddType application/octet-stream
AddType application/octet-stream
AddType application/rtf
AddType application/zip
AddType application/x-stuffit
AddType application/mac-binhex40
AddType audio/basic
AddType audio/x-wav
AddType audio/x-aiff
AddType video/quicktime
AddType video/mpeg MPEG
AddType video/x-msvideo
AddType text/html
AddType image/gif
AddType image/jpeg
AddType image/tiff
AddType text/vnd.wap.wml
AddType text/vnd.wap.wmlscript
but all i get is a 500 internal server error

HELP!! :nervous:

bhutz
08-26-2004, 09:58 AM
I added this code to my .htaccess file for my remote server and also to my httpd.conf for the server that I use for testing so they both should work :p

# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml


# For normal WML pages.
AddType text/vnd.wap.wml .wml

# For WML embedded graphics.
AddType image/vnd.wap.wbmp .wbmp

# End MIME Types for WAP

Bounce
08-26-2004, 06:42 PM
I added this code to my .htaccess file for my remote server and also to my httpd.conf for the server that I use for testing so they both should work :p

# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml


# For normal WML pages.
AddType text/vnd.wap.wml .wml

# For WML embedded graphics.
AddType image/vnd.wap.wbmp .wbmp

# End MIME Types for WAP


thanks i'll try that out