Tuesday, May 1, 2018

Laravel Project – Too many redirects error - development

Laravel Project – Too many redirects error

I am getting too many redirects error with my laravel project. I have checked my apache settings and have checked code too, everything looks ok to me. I have two domains pointing to same code, one is *.com and the other is *.com.es. *.com is working fine, but *.com.es is throwing too many redirects error. After looking more into this issue, there is definitely some issue at the code side, not the apache side. My route file has this..

Route::group(['middleware' => ['csrf']], function () use ($routeGenerator) {

$routeGenerator->route([
    '/' => ['controller' => 'PageController@index', 'request' => ['get']],
    '/home' => ['controller' => 'PageController@index', 'request' => ['get']],
]);
});

Can someone help? Thanks.



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-project-too-many-redirects-error/
via Lzo Media

No comments:

Post a Comment