So I’m on a bit of a kick this morning. I wanted to play around with 3GPP on my mobile phone, so I needed to be able to serve XHTML-MP content. The first thing I did was add a few MimeTypes to the .htaccess folder of my mobile content directory, and tell Apache to use index.xhtmlmp as its index file:
AddType application/vnd.wap.xhtml+xml .xhtmlmp
AddType video/3gpp .3gp
Then I created a really simple index file, and called it index.xhtmlmp. I know that .xhtmlmp is an ugly extension. I’ll do my best to find out if there is a standard extension (or a best practice even) and use that. For now, here’s an index file:
<?xml version="1.0" charset="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
<a href="tea.xhtmlmp">Testing 3GPP in XHTML-MP</a>
That’s about all you need to start serving XHTML-MP content from Apache.
Right now my XHTML-MP content resides at http://postneo.com/mobile/ Luckily you don’t have to worry about typing index.xhtmlmp, as Apache serves that up for you. Right now it only holds a link to my tea movie. It works fine on my 3650, YMMV.