laravel-missing-page-redirector

This Laravel package redirects missing pages when URLs change during a website migration.

github.com/spatie/laravel-missing-page-redirec…
laravel-missing-page-redirector homepage screenshot

About laravel-missing-page-redirector

laravel-missing-page-redirector is an open source Laravel package that redirects old URLs to new URLs when site URLs change during migration. Redirects are listed in a config file, with support for route parameters, optional parameters, wildcard segments, and use of a database as the redirect source. It requires Composer installation, registration of middleware, and publishing the config file. By default it only handles 404 responses and issues a 301 redirect, both configurable.

Key features

  • Define old-to-new URL redirects in config file
  • Use Laravel route parameters in redirect rules
  • Support optional route parameters in redirect paths
  • Use wildcard (*) to match multiple URL segments
  • Change redirect trigger from default 404 to other codes
  • Set custom redirect HTTP code, default 301
Best for: Laravel developers handling URL changes during a site migration.
Good for
  • Redirects defined by adding entries to config file
  • Supports parameterized and wildcard redirect patterns
  • Allows custom trigger codes and redirect status codes
Watch out for
  • Only works within Laravel applications
  • By default only redirects requests that return 404

laravel-missing-page-redirector at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

laravel-missing-page-redirector alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in SEO & Web Analytics

Well-known listings from the same topic.

All 211

laravel-missing-page-redirector FAQ

How do I create a redirect?
Add an entry to the redirects key in the config file, such as '/non-existing-page' => '/existing-page'.
Can redirects use parameters or wildcards?
Yes. It supports Laravel route parameters, optional parameters like {url?}, and * to match multiple segments mapped to {wildcard}.
Which status codes trigger and send redirects?
By default only 404 responses trigger a redirect, changed via redirect_status_codes. Redirects use 301 by default, which can be overridden per rule, for example with 302.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing