Support the ongoing development of Laravel.io →
posted 10 years ago
Requests

when I navigate to http://mysite.com/admin, the browser returns the redirect error message.

this is the message that I get in firefox

" The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.

"

but any params in the url returns just fine. like mysite.com/admin/abc returns the correct view.

route::get('admin', function() { .. }) 
or 
route::group(array('prefix' => 'admin','before'=>array('auth')), function() { .... }

both route ends up in redirect loop.

[note:] I haven't added any new functions or altered configurations in laravel bootstrap files. and my laravel version is 4.2, tested in chrome and firefox. any thoughts ?

Last updated 2 years ago.
0
route::group(array('prefix' => 'admin', 'before'=>'auth', function() { .... });
Last updated 2 years ago.
0

u just removed the array ? FYI before filter accepts array too .. that wouldnt solve the problem ..

Last updated 2 years ago.
0

I have the same problem, any ideas guys ?

[EDIT]: I have found the issue, I had a folder named "admin" in my public directory !! Moved that folder and it works like a charm now !

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

iZaL izal Joined 7 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.