Resource interpreted as stylesheet but transferred with MIME type text/html Resource interpreted as stylesheet but transferred with MIME type text/html apache apache

Resource interpreted as stylesheet but transferred with MIME type text/html


Create an .htaccess file into your root folder (or update the existing one) with this line inside

AddType text/css .css 

this will tell apache to send the right content-type header for .css file


There is possibility that not just css resources were interpreted wrongly. It maybe a problem of your webserver configuration.

The best way to check is to go to Chrome -> Network tab and check responses section for each request. Also you can run $ curl -I http://path_to_file_or_page with terminal and have a look at response, you should see it in following format, e.g. Content-Type: image/jpeg


So, if it will occur that webserver (apache) does it for all filesthen you can try to solve the problem in following way:

Check your /etc/apache2/apache2.confIf there are any SetHandler application/x-httpd-php line, try to comment it and then reload your apache by $ sudo system apache2 reload

Let us know if the problem is still there.


It could be that your web server is properly configured but it really is returning HTML instead of CSS.

Check that you have the correct path, spelling, case, etc. Hit the URL directly and see what comes back. Your web server might be responding with an error page (HTML) and a 200-Ok instead of a 404-Not Found.

I'm not saying this ever happened to me...