PHP Apache2 Laravel Resource interpreted as Stylesheet but transferred with MIME type text/html: “

Depending on your server configuration. Some condition, it can be solved by creating 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

On my case, the above won’t work at all. My own hosted Ubuntu needs below changes so that is will works.

Check your

/etc/apache2/apache2.conf

If there are any

SetHandler application/x-httpd-php

line, try to comment it and then reload your apache by $ sudo system apache2 reload

Reference: https://stackoverflow.com/questions/10553638/resource-interpreted-as-stylesheet-but-transferred-with-mime-type-text-html

By Keenlio, July 13, 2020

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


+ three = 9

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>