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.


  • The .htaccess file should be set to world-readable.

  • The administrator may configure the web / WAP server to ignore .htaccess files. In such cases, the above method will not work.

Previous Page Page 5 of 13 Next Page

Contents at a Glance (Click Here for Full Table of Contents)
Print this Web Page | | Back to Top

Feedback Form (Expand)

What do you think about this web page?

WAP Server Setup Tutorial - Table of Contents WAP Server Setup Tutorial - Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Previous Page Next Page