I'm running the command php bin/magento setup:static-content:deploy which exports all the assets in pub/static (creates folders: _requirejs, adminhtml and frontend), changes the deployed version in deployed_version.txt, and finishes with 0 errors.

The problem is that my frontend is calling assets like:

$BASE_URL/pub/static/**version$DEPLOYED_VERSION**/frontend/... (e.g. http://local.estores.com/pub/static/version1503583668/frontend/Magento/luma/en_US/mage/calendar.css)

instead of:

$BASE_URL/pub/static/frontend/... (without the version folder).

Not sure why it's doing this, or how to change it. I upgraded and recompiled. The deploy process is creating the files, so I guess it's not a permissions thing.

enter image description here


1 Answer 1


It is an magento2 feature.

magento2 used to overcome the browser cache for Static content.

There will be file at pub/static/.htaccess which internally rewrite all




In your case, you have an issue with rewrite

Static Content is not loading after upgrade

  • Could have something to do with the PHP version? I downgraded to 5.6 since my local only has 7.0.0 (not accepted by Magento2, don't know why). I'll upgrade to 7.0.1 and see what happens. Thanks! Commented Aug 24, 2017 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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