vendredi 30 septembre 2016

issue loading CSS and JS files in Laravel

I'm having a strange issue in my Laravel 5.2 app. Specifically with loading some CSS and JS files. I have this in the folder public/assets so, I have something like this:

|--public
|----/assets
|-------/css
|------------/auth
|---------------login.css
|----------main.css
|-------/js
|---------email.js
|---------/modules
|------------faq.js

That is my directory, so I'm loading the CSS with:

    <link href="" rel="stylesheet" type="text/css" />
    <link href="" rel="stylesheet" type="text/css" />

And the Javascript files with:

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>

Also I'm loading another files as well but I'm explaining the basic situation. So, the thing is that the load of login.css and faq.js are giving me 404 error but the other files are loaded correctly, I even checked open the files through the absolute paths and they're loaded fine, also I made chown to www-data of the public folder but nothing works, so I don't know why a 404 error is triggered. What else should I check?

In the console of the browser the links that are loaded are: http://mydomain/assets/js/modules/faq.js http://mydomain/assets/css/auth/login.css

But they give 404 error, and the other files doesn't



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2dcM4Ak
via IFTTT

Aucun commentaire:

Enregistrer un commentaire