Magento 2 not loading css and js

Magento 2 not loading css and js – Sometimes after installing magento 2 we face problem like css and js are not loading. Here in this tutorial we are going to explain how you can fix this problem by following few steps.

Magento 2 not loading css and js

Here are the steps –

  • Step 1 : Open Cmd
  • Step 2 : Go to the magento root directory.
  • Step 3 : Run the command – php bin/magento setup:static-content:deploy
  • Step 4 : Delete Cache
  • Step 5 : Make Sure apache rewrite_module is enabled if it is not enabled go to – Apache->apache modules->rewrite_module and enable this module. If you enable the apache rewrite module restart the server to restart all services.

Hope the above solution will work for you.


Add Comment

📖 Read More