> ## Documentation Index
> Fetch the complete documentation index at: https://docs.filarank.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirect Manager

> 404 capture and one-click 301 redirects

Register the middleware in `bootstrap/app.php`:

```php theme={null}
use Usamamuneerchaudhary\FilaRank\Http\Middleware\HandleRedirects;

->withMiddleware(function (Middleware $middleware) {
    $middleware->web(append: [HandleRedirects::class]);
})
```

Publish and run the redirect migration (the installer does this for you), then register the plugin on your panel:

```php theme={null}
->plugin(\Usamamuneerchaudhary\FilaRank\FilaRankPlugin::make())
```

The middleware serves matching redirects (with normalisation, chain-following A→B→C, and loop protection) and logs every 404. Logged 404s appear on the **SEO Health** page with a one-click "Create redirect" link that pre-fills the source path. Rules are cached for an hour and the cache is busted automatically on create/edit/delete.
