Laravel sends the server on 10 redirects? Laravel sends the server on 10 redirects? apache apache

Laravel sends the server on 10 redirects?


I had this problem as well, and I solved it with the following line on the .htaccess file:

RewriteBase /


If you are using Laravel in a subfolder, you need to follow this steps:

* Consider that you uses WAMP on default instalation directory (c:\wamp)

Insert the RewriteBase line in your .htaccess file with the subfolder of your Laravel instalation.

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /subfolder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
<IfModule>

Set the application URL on file c:\wamp\www\subfolder\config\app.php

'url' => 'hggp://localhost/subfolder',

Create a configuration file on alias directory c:\wamp\alias\subfolder.conf with this content:

Alias /subfolder"c:/wamp/www/testando/public"

<Directory "c:/wamp/www/subfolder/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Allow from all
</Directory>

This it works! :)


Check if your public folder is setup properly