Forum Moderators: phranque

Message Too Old, No Replies

.htaccess causing error 500

Unable to load "AddType text/vnd.wap.WML WML" into .htaccess

         

GleyFox

5:30 pm on May 26, 2004 (gmt 0)



Hi, I was trying to make my own wap site. I loaded this line

AddType text/vnd.wap.WML WML

using .htaccess in my root directory and it caused Internal Server Error. I could recover my website by loading an empty .htaccess back in.

Anyone has a solution?
Thanks

jdMorgan

5:56 pm on May 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



GleyFox,

Welcome to WebmasterWorld [webmasterworld.com]!

Try it with all lowercase - "vnd.wap.WML" may not be valid.

Another possibility is that your server is configured with AllowOveride FileInfo disabled, in which case, you won't be able to use AddType.

Jim

gergoe

5:58 pm on May 26, 2004 (gmt 0)

10+ Year Member



You could try to add the leading dot in the front of the extension, although it is not really needed. The problem might be caused by something else, check your logfiles for further details. By the way, the mime-type mapping you've trying to add is already defined in apache distribution, so you don't need to add it again.

Put a wml file on your server, and check the header of the response for that file with a server header checker. You can find such a web based tool here on webmasterworld, check the control panel. If the response has the right mime type then you don't need to do anything else.