Magento 1.9 Admin CSS Not Working – How to Fix

cssjavascriptjs-cssmagento-1.9

I am trying to install site offline which is currently online.

But admin panel coming without css and js.

Any help.

In chrome console I got this

Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
localhost/:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
(index):1Uncaught SyntaxError: Unexpected token <
(index):1Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):45 Uncaught ReferenceError: varienForm is not defined(anonymous function) @ (index):45

I tried 'view page source'

I got code

When I click on css or js links they just reload the page.

In firefox I got this console

This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] localhost
The stylesheet https://localhost/venky/admin/ was not loaded because its MIME type, "text/html", is not "text/css".

Best Answer

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

Update

your are putting https in your url . But not configured ssl on localhost. remove s from your url . try like http:\\localhost\your_store_url

Related Topic