Can't make "DefaultType text/html" work.

Hi,

I'm on a Mac and using the local Apache as test server. In this case, I'm using a virtual host and trying to make textfiles be parsed and served as html files - which they are except that the file names are "foo" without any extension.

I have droped an .htaccess files in the root with the (only) line:
"DefaultType text/html"
which should make all unknown files and files without extensions be handled as html. But I can't make it work. These files still show up as text with the html code in them showing.

Am I making some mistake? How can I make this work?

TIA
Dani

 

 

 

 

Top