Question

I have added the following to my .htaccess file

# MIME Types for WAP
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.wap.xhtml+xml .xhtml

However the file is saved as index.php and uses the following header:

header("Content-Type: application/vnd.wap.xhtml+xml");

The file currently tries to download can anyone advise how to rectify this?

Was it helpful?

Solution

Use the XHTML MIME type in addition to the existing mappings:

AddType application/xhtml+xml .xhtml

In addition, AddHandler can be used to handle that content-type.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top