In my Laravel's public directory, I have the following content:
- js/
- css/
- .htaccess
When I want to link to something from the JS or CSS folders, this works correctly:
http://example.com/js/app.js
However, I have now created an "exports" folder, and within it a folder named "csv". In this folder I have a file named overview.csv, but when I try to link it I get a 404 error. The URL I am trying is:
http://example.com/exports/csv/overview.csv
I am wondering why this doesn't work. There is something in the .htaccess file that might be relevant, but I am not sure:
<IfModule mod_headers.c>
<filesMatch "\.(jpg|jpeg|png|gif|webp|js|ico)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>
</IfModule>
Here I have tried appending |css to the filesMatch list but the 404 error is still there.
I set permissions to 777 on everything in the public_html directory just to rule that out as an issue and the error is still there.
How do I make this work?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire