jeudi 17 décembre 2015

Laravel acces forbidden css/js

I have a laravel 5 project. And a WAMP server.

The 'index.php' page is correctly displayed, but not the css and js files. Each time I have this kind of error :

Forbidden You don't have permission to access /ecole/public/css/bootstrap.min.css on this server. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80

My .htaccess is :

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

But i think that the problem is not this file. I think that the pb is about the apache configuration (the httpd.conf) , but I do not know what exactly.

What do you suggest ?

Many thanks.

Dominique



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire