This question already has an answer here:

CSS, scripts not loading, via pub/static/version1496086766/frontend/Magento/, but loading without version: pub/static/frontend/Magento/.. There is .htaccess file with rewrite rule, and sudo a2enmod rewrite - Module rewrite already enabled, and I have set AllowOverride: SSLOptions +StdEnvVars AllowOverride All

I have set up apache virtual host with webmin. This problem is coming after migration, I have copied the backup and db to another server. Website is working, but CSS is not loaded.

marked as duplicate by Siarhey Uchukhlebau, Keyul Shah, Murtuza Zabuawala, liyakat, Amit Bera May 31 '17 at 9:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Run following query in database

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/static/sign', '0');

or if you have already value for that path, then change it from 1 to 0.

Then flush cache and deploy static content as follows.

php bin/magento cache:flush
php bin/magento setup:static-content:deploy

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