ForceType text/html;charset=utf-8 in .htaccess is causing all externally linked CSS to stop renderin

Posted by chimerical on Stack Overflow See other posts from Stack Overflow or by chimerical
Published on 2010-03-22T00:58:56Z Indexed on 2010/03/22 1:01 UTC
Read the original article Hit count: 366

Filed under:
|

I'm using:

ForceType text/html;charset=utf-8

in my .htaccess file, but it's causing all externally linked CSS to stop rendering on their respective pages.

So something like this:

<link rel="stylesheet" type="text/css" href="somestyles.css" media="all" />

no longer works on the page using it.

I've also been trying combinations of:

AddCharset utf-8 .html
AddCharset utf-8 .htm
AddCharset utf-8 .css
AddCharset utf-8 .js
ForceType text/html;charset=utf-8
ForceType text/css;charset=utf-8

but no luck so far. Does anyone know what's wrong?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about apache