Hi everyone,
I am working for two days on this and couldn't make everything work... before you read it, note that I've tried every solution I could find on stackoverflow, quara and more.
So:
These are the steps I took:
Current situation: pages are working, admin panel works, pictures are apparent, however, CSS/Javascript doesn't work (getting 404 in chrome dev tools).
I've tried cleaning the cache manually and with:
sudo bin/magento cache:clean
I've tried deploying static content:
sudo php bin/magento setup:static-content:deploy -f
I've tried standard deployment:
sudo bin/magento setup:static-content:deploy -f -s standard
I've tried to reconfigure the 'web/unsecure/base_url' and 'web/secure/base_url' with /magento prefix and without.
I've tried to delete static content inside the pub/static folder.
Here is the link to the website:
Hope you will be able to help me.
Best Regards,
Moshe.
Solved! Go to Solution.
Hello @moshe_biton
Please check .htaccess file once in pub and pub/static folder. If file is missing then upload this.
If this will not work then run below commands:
chmod -R 0777 var/ pub/ generated/ php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f en_US php bin/magento cache:flush chmod -R 0777 var/ pub/ generated/
Hello @moshe_biton
Please check .htaccess file once in pub and pub/static folder. If file is missing then upload this.
If this will not work then run below commands:
chmod -R 0777 var/ pub/ generated/ php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f en_US php bin/magento cache:flush chmod -R 0777 var/ pub/ generated/
Didn't work...
I've already tried it before and it didn't work, but somehow, it does right now.
Thanks