Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache AddType text/css .css Ignored

I have made an ,htaccess file in my /font directory with only this line in it (as part of troubleshooting).

AddType text/css .css

None the less Google Chrome (even 19.0.1053.0 canary) reports that the .css files are returned as: MIME type text/html

http://paulanorman.com/:11 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://paulanorman.com/fonts/iwona-stylesheet.css".

I use Hostgator and have checked in Cpanel that text/css is default on my server for .css

I have also checked using wget on cygwin bash shell and the documents are indeed coming down as text/html

These stylesheets are being ignored. However I have found if I

<style ..>
 <?php include "dah dha / style-sheets.css" ?>
</style>

one by one in the head of my document all is fine.

However I would like not to have to do that.

Any one solved this? I have read much all over the net about this and it appears as an unexplained fickle problem it seems.

TIA paul

like image 200
PaulANormanNZ Avatar asked Apr 21 '26 02:04

PaulANormanNZ


1 Answers

According to www.askapache.com this is ok as a one step process with the quote marks

AddType 'text/css; charset=UTF-8' css

like image 116
PaulANormanNZ Avatar answered Apr 22 '26 16:04

PaulANormanNZ