Laravel 5.6 Unable To Import Css File - Stack Overflow
Laravel 5.6 Unable To Import Css File - Stack Overflow
2024 Developer survey is here and we would like to hear from you! Take the 2024 Developer Survey
Laravel .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
css laravel
Share Improve this question Follow edited Apr 29, 2018 at 5:17 asked Apr 28, 2018 at 16:37
JGeorgeJ
333 1 9 26
https://stackoverflow.com/questions/50078776/laravel-5-6-unable-to-import-css-file?noredirect=1&lq=1 1/3
6/11/24, 6:33 PM Laravel 5.6 unable to import css file - Stack Overflow
Share Improve this answer Follow answered Apr 28, 2018 at 19:58
Mahbod_SN
61 1 5
If this doesn't work, then make sure that you have properly set up your .htaccess (for apache) or your
nginx config. – Namoshek Apr 28, 2018 at 20:35
No it doesnt work and this is my laravel .htaccess. How can i check if my .htacces is set properly.
– JGeorgeJ Apr 29, 2018 at 5:17
stackoverflow.com/questions/40682748/… this wont work too – JGeorgeJ Apr 29, 2018 at 5:34
Solved
i ma probably missing some configuration that i cant find out. But i create virtual host with
1
xampp and set DocumentRoot "C:\xampp\htdocs\final\public" and this works.
Share Improve this answer Follow answered Apr 29, 2018 at 6:16
JGeorgeJ
333 1 9 26
https://stackoverflow.com/questions/50078776/laravel-5-6-unable-to-import-css-file?noredirect=1&lq=1 2/3
6/11/24, 6:33 PM Laravel 5.6 unable to import css file - Stack Overflow
Try:
Share Improve this answer Follow answered Apr 28, 2018 at 17:41
matthunterking
1
it does not work. this localhost:8000/public/css/style.css and this localhost:8000/css/style.css shows up 404
error – JGeorgeJ Apr 28, 2018 at 17:59
https://stackoverflow.com/questions/50078776/laravel-5-6-unable-to-import-css-file?noredirect=1&lq=1 3/3