S
S
Sergey Bard2017-09-26 15:53:54
htaccess
Sergey Bard, 2017-09-26 15:53:54

Why does the localhost site give back - the localhost site redirected too many times?

Hello. I started studying laravel, and so when I redirect from Middleware to another page, the site gives me "The site localhost redirected too many times.", And I tried it many times, but the result is the same, after reading no, I roughly understand that here the problem is not in laravel itself, but in htaccess or xampp or something else, but I just can’t figure out what exactly.
htaccess content is all by default

<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>

I work locally, I use xampp software.
Please help me solve this problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question