8. Setting up MIME Types without Administrator Rights

The ways described above for setting up MIME types involve changing the configuration of the WAP / web server, which requires you to have administrator rights. However, in many situations, you do not have administrator rights. For example, it is common to host WAP / web sites on a server managed by a web hosting company.

In general, there are two ways for setting MIME types when you do not have administrator rights:

  1. Using a .htaccess file (for Apache)

  2. Using a server-side technology

8.1. If the Web / WAP Server is Apache...

If the web / WAP server is Apache, you can place the MIME settings in a file called .htaccess using the format below:

addtype mimeType fileExtension

For example, your .htaccess file may contain something like this:

addtype text/vnd.wap.wml wml
addtype application/vnd.wap.wmlc wmlc
addtype image/vnd.wap.wbmp wbmp
addtype text/vnd.wap.wmlscript wmls
addtype application/vnd.wap.wmlscriptc wmlsc
addtype application/vnd.wap.xhtml+xml xhtml

The new MIME settings will be applied to the directory that contains the .htaccess file and all its subdirectories.


Previous Page Page 5 of 13 Next Page

Feedback Form (ExpandCollapse)

What do you think about this web page?

(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page