Installation | 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)  Installation

 Version   v1      

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

  Installation    
- [ 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)

 Installation
============

1. Install Rust 1.99 or newer using [rustup](https://rustup.rs/).
2. Add the package and framework dependencies. The package is not published to crates.io:

```
[dependencies]
spatie-laravel-missing-page-redirector = { git = "https://github.com/spatie/laravel-missing-page-redirector-rust" }
laravel = { package = "laravel-rust", version = "=0.1.0", default-features = false }
```

3. Commit `Cargo.lock` to pin the Git revisions. For local development, you can replace the Git dependency with `path = "../laravel-missing-page-redirector-rust"`.
4. Import the package as `spatie_missing_page_redirector` and add `service_provider()` through `with_providers`. It registers environment-backed configuration defaults with package-tools.
5. Append `RedirectsMissingPages` globally in `with_middleware`, as shown in the README. Unmatched URLs never enter route middleware.
6. Configure a canonical HTTP(S) origin such as `https://example.com`, without a base path, credentials, query or fragment. Middleware order and allowed origins belong to the application; the provider never installs middleware.
7. Set rules in [application configuration](usage#application-configuration), pass static rules directly, or implement a dynamic provider.

 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)
