I'm currently trying to implement redirects using
Route::get('people/foo', function() {
return Redirect::to('people', 301);
});
That won't work, will give a 404, but doing 'people/foo/bar' will redirect correctly.
Route::get('people/foo/bar', function() {
return Redirect::to('people', 301);
});
What could be the cause of this, I've tried different variants.
Do you have another route that's intercepting requests to people/{whatever}
like:
Route::get('people/{id}', 'PeopleController@show');
or
Route::resource('people', 'PeopleController');
If so, then you'll need to place this specific route before that one.