I m unable to load style-l.css or any css file.I put fresh installation .htaccess but no luck. It show 404 Error.
http://reliancesolution.co.uk/pub/static/frontend/Sm/clickboom/en_US/css/styles-l.css
-
Did you checked my answer ? Is it helpful for you or not?Rohan Hapani– Rohan Hapani2018年10月02日 10:43:45 +00:00Commented Oct 2, 2018 at 10:43
-
Rohan i check my apache log and there i found some code issue in .htaccess under pub.I just remove .htaccress and now its all ok.Anees– Anees2018年10月02日 14:36:22 +00:00Commented Oct 2, 2018 at 14:36
-
okay. Happy to help :) Happy coding !!Rohan Hapani– Rohan Hapani2018年10月03日 04:12:53 +00:00Commented Oct 3, 2018 at 4:12
4 Answers 4
Step 1) => php bin/magento setup:static-content:deploy
Step 2) => php bin/magento indexer:reindex
Step 3) => make sure apache "rewrite_module" is enabled and then restart the server
Step 4) => Delete cache folder under var/cache
Step1 :- Go to var folder and check .htaccess file is available or not. If it is not available then copy .htaccess file in default magento2 and paste.
Step2 :- Go to pub\static folder and check .htaccess file is available or not. If it is not available then copy .htaccess file in default magento2 and paste.
Step3 :- Login your ssh/putty and go to root directory and run below command
a). rm -rf var/*
b). rm -rf pub/static/*
c). php bin/magento setup:static-content:deploy
d). chmod -R 777 var pub/static
Step4 :- Refresh your link after check it
Kindly Check Your .htaccess file at Following locations :
- Magento Root
- app/
- pub/
- pub/static/
If any of this is not available add them.
Login your ssh/putty and go to root directory and run below command
a). rm -rf var/*
b). rm -rf pub/static/*
c). php bin/magento setup:static-content:deploy
d). chmod -R 777 var pub/static
Refresh your link.