I have a brand new server install, debian 6.1.0.10, wordpress latest version, all packages up to date. Transferred all content and database across from an old server. The pages load OK, but none of the CSS is applied, and the console output of the browser says "The stylesheet http://blackcountrywoodturners.co.uk/wp-content/themes/misty-lake/style.css?ver=6.2.2 was not loaded because its MIME type, "text/html", is not "text/css"."
The file /etc/mime.types contains the required line "text/css css". I've also added a line to the local .htaccess file to add the type, but no good. Contents of the .htaccess file are:
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
<br> AddType text/css .css
I've already read the various posts on numerous stackexchange sites (and other places), but none of the tips have worked. I seem to remember somebody posting somewhere it had to do with a DOCTYPE directive, but I cannot remember where I saw this.
Any pointers would be highly welcome. The server is not yet on the public internet, but if you have any questions, fire away and I will provide whatever info is needed.
<link>
tag and the server serves it from that URL. If it's being identified as text/html the issue could be that the file doesn't exist and a 404 HTML page is being served instead. Look at the Network tab of your browsers developer tools to see what's actually being served for that file.RewriteCond %{REQUEST_FILENAME} !-f
. What do you see if you go to the CSS URL? (It won't load for me)