M
M
Makfroy2016-11-18 09:30:28
htaccess
Makfroy, 2016-11-18 09:30:28

What is the problem with htaccess laravel?

Please tell me, I have laravel 5.2 on xampp, but for some reason htaccess, which is in the public folder, does not want to display this folder, and when I demolish it (htaccess), everything works right away, I understand that this is not correct, but what I can’t catch up with the problem, please tell
me htaccess code

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
        AllowOverride All

    </IfModule>

    RewriteEngine On
DirectoryIndex index.php
    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

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

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rurik Rostislavich, 2016-11-18
@snipeer777

Try commenting out the -MultiViews directive

M
Makfroy, 2016-11-18
@4Geka

I don’t know what the problem was, I just created a new project, took a new htaccess from the public folder, uploaded it instead of the broken htaccess and it all worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question