Redirect every request in a Laravel app original
by Freek Van der Herten – 1 minute read – Edit
I recently had to redirect every single request in a Laravel app. You might think that would be as easy as this: Route::get('/', function() { return redirect('https://targetdomain.com'); }); But that'll only redirect the "/" page. All other requests will return a 404.…