0

I deleted pub/static folder of Magento 2 Admin Panel. Now my Magento 2 Admin Panel looks like below.

enter image description here

I ran below commands

php bin/magento setup:upgrade

php bin/magento cache:flush

php bin/magento setup:static-content:deploy

php bin/magento indexer:reindex

But it still remains as like before. How can I get the actual look ?

abu abu
  • 744
  • 3
  • 15
  • 38
  • 1
    Try my answer https://magento.stackexchange.com/questions/96289/no-images-or-js-on-new-magento-2-installation/96291#96291 – Magento 2 May 13 '17 at 07:23

2 Answers2

1

don't delete whole pub/static because inside static folder contain .htacess file. Please copy that file again and check it.

Sunil Patel
  • 2,087
  • 1
  • 15
  • 17
1

Download .htaccess from official Magento 2 repository

Run below command.

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

Keep in mind never delete .htaccess file from pub/static

Suresh Chikani
  • 15,836
  • 11
  • 62
  • 99