How do you think we can investigate your problem if you don't provide neither your code nor errors/logs?
Jun 14, 2025
9
Level 1
Redirects work locally but not in prod
I've got my redirects in a controller (because I read that would be a better way to do it). Because of the size of my site, they are in a separate route file.
Here's my route:
Route::get('index.php/biography/{id}', [\App\Http\Controllers\RedirectsController::class, 'biographyOverviewRedirect']);
Here's my controller:
public function biographyOverviewRedirect($id) {
return redirect('biography/'.$id, 301);
}
They are working locally (using Herd) but not in production.
Has anyone had this happen? Any suggestions for a fix?
(I'm still on Laravel 10)
Please or to participate in this conversation.