Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question