• Verified
  • Free plan

Laravel Missing Page Redirector

Listed under GitHub repos

Laravel Missing Page Redirector is an open source Laravel package that redirects 404 pages to new URLs from a config file or a database, so old links keep their SEO value after a site move. It is free under an MIT license.

Used for

  • 404 page redirects
  • permanent URL redirects
  • site migration redirects

What Laravel Missing Page Redirector does

A PHP package for Laravel applications that catches requests for URLs which no longer exist and sends visitors to their replacements with permanent redirects. It targets site migrations where old URLs changed, so the SEO worth of previously popular pages is kept. Once installed, redirects are added as entries in a config file, and the package registers itself automatically.

The default redirector reads its map from the published config file. A developer who wants redirects stored elsewhere can write a custom redirector, with the database given as an example. When a redirect is matched the package fires a RouteWasHit event, and it can be wired in as a fallback route instead of global middleware.

Key features

Config file redirect map
Old and new URL pairs are listed as entries in a config file published during installation.
Custom redirector support
Swap the default config-based redirector for your own implementation, for example one that reads redirects from a database.
RouteWasHit event
The package fires a RouteWasHit event each time it finds and applies a matching redirect.
Global middleware registration
Add the RedirectsMissingPages middleware to the global stack in bootstrap/app.php so missing routes are caught.
Route fallback option
Use Route::fallback instead of overwriting other routes when the global middleware approach does not fit.
Permanent redirects for SEO
Sends permanent redirects from old URLs to new ones so search rankings carry over after a site move.
Automatic service registration
Installing with Composer registers the package automatically, with no manual service provider entry needed.
Test suite included
The repository ships a test suite that is run with the composer test command.

How it works

  1. Install with composer require spatie/laravel-missing-page-redirector; the package registers itself.
  2. Append the RedirectsMissingPages middleware to the global middleware stack in bootstrap/app.php.
  3. Publish the config file and add entries mapping each old URL to its new URL.
  4. Optionally write a custom redirector, such as one that reads the redirect list from the database.
  5. Requests for missing pages are matched and redirected, and a RouteWasHit event fires on each hit.

Plans and pricing

Free and open source under the MIT licence; the repository lists no paid plans.

Integrations and platforms

Works with

  • Laravel
  • Composer

Available as

  • Web

Repository facts

  • Repositoryspatie/laravel-missing-page-redirector
  • LanguagePHP
  • Stars508
  • Forks34
  • LicenceMIT
  • Created2016-10-13
  • Last commit2026-11-05
  • Open issues0
  • laravel
  • php
  • redirect
  • seo

Services and details

  • Does SEO work itself

    Yes
  • Free plan or free tools

    Yes

No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.

Compare with other SEO tools:

About the company

Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.