This question already has an answer here:
- Magento 2 404 error for scripts and css 7 answers
I'm using to make a custom theme and applied to it. after installing any modules than front-end CSS not working. Some time replace the .htaccess file from official link than working. anyone can fix it.
How to resolve this issue.
I'm also run these commands many times but not fix.
sudo php -f bin/magento setup:static-content:deploy php bin/magento setup:di:compile php bin/magento indexer:reindex sudo chmod -R 777 var