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 ?

| improve this question | | | | |
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

| improve this answer | | | | |
1

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

| improve this answer | | | | |

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