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 ?

1

2 Answers 2

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

1

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.