S
S
Sergey2017-03-19 15:15:14
css
Sergey, 2017-03-19 15:15:14

css not included in laravel 5.3

I started learning Laravel and ran into a problem that css does not work. I am developing a site on Xamppe
css connection code to the app.blade.php template

<link rel="stylesheet" type="text/css" href="{{ asset('css/main.css') }}">

htaccess file
<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]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-03-19
@hardtime88

So, judging by the error, css "works" for you, the problem is that there is no access to the file or directory:

You don't have permission to access the requested object.
It is either read-protected or not readable by the server.

Check the owner and permissions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question