-
I have been facing strange issue, as the part moving modifications in static content. we removed
pub/static
and deployedsetup:static-content:deploy
. -
After doing this, files are generated properly in
pub/static
folder but when i load front end, styles are vanished. -
As in the source the file paths are loading with version1483082446
root/static/version1483082446/frontend/Smartwave/porto/en_US/mage/calendar.css
- I have followed below commands, but my styles are not loading in frontend.
Remove pub/static
Remove var/cache
Remove var/composer_home
Remove var/generation
Remove var/page_cache
Remove var/view_preprocessed
run php bin/magento setup:static-content:deploy
Any help would be appreciated.
Best Answer
You've actually removed the whole of the pub/static folder. Meaning you've also removed the .htaccess file from the static folder.
Re-add this .htaccess file to
pub/static
:And your problems should be resolved.