Introduction | laravel-missing-page-redirector-rust | Spatie       

 SPATIE  

laravel-missing-page-redirector-rust
====================================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-missing-page-redirector-rust](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/usage)
- [ Testing ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-missing-page-redirector-rust/v1/changelog)

  Laravel-missing-page-redirector-rust 
======================================

 Redirect missing pages in your Rust application 

### Useful links

- [Repository](https://github.com/spatie/laravel-missing-page-redirector-rust)
- [Discussions](https://github.com/spatie/laravel-missing-page-redirector-rust/discussions)

Introduction
------------

- Append `RedirectsMissingPages` to the application's global middleware. It waits for the handler or router to return an eligible response, then asks a `Redirector` for rules.
- A matching rule replaces that response with a redirect. A miss leaves the original response, headers and body intact.
- Use `RedirectRules` for a static list or `ConfigurationRedirector` for the native `Config` section. Register `service_provider()` for environment-backed defaults.
- Implement `Redirector` when rules come from current application data, such as old article slugs or a redirects table. No database schema or container binding is required.
- By default only 404s are eligible. Select other statuses or disable lookup through typed config and environment variables. Only GET and HEAD can redirect.
- Configure the canonical origin and allowed external origins explicitly. Incoming headers never authorize external redirects.
- Listen for hit and miss events through the framework's event dispatcher.
- Continue with [installation](installation-and-setup) and [usage](usage).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
