Forum Moderators: phranque

Message Too Old, No Replies

.css text/plain MIME Type problem

Problem with css and mime type

         

boxers999

1:31 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



Hi There,

I have a very strange problem. My server is chucking out .css as text/plain rather than text/css. I have googled this like mad and come across a couple of fixes that dont work for me.

Firstly, I have a valid apache-mime.types file that does have text/css css listed in it.

Secondly I have added the AddType text/css .css method in a working .htaccess file.

I still get the wrong mime type for my css files.

Anyone?

encyclo

1:59 am on Nov 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try
AddHandler
rather than
AddType
to see if it makes any difference, and also you should completely empty you browser cache when testing - it could just be that you are viewing a cached version rather than a live file. :)