rias/statamic-redirect
Manage redirects inside Statamic's Control Panel. Create 301/302 rules, use wildcards for dynamic URLs, and send old or changed paths to the right destination without server config. A lightweight addon for smoother site migrations and SEO-friendly link updates.
Architecture fit. rias/statamic-redirect is a Statamic addon, not a standalone Laravel package. Its value is entirely contingent on the application already running Statamic (v3/v4/v5) on Laravel. It plugs into the Statamic addon lifecycle — a service provider registered through Composer's extra.statamic manifest, a control-panel UI for editors, and a middleware that intercepts requests before (or alongside) Statamic's own router. For a Statamic site this is a natural fit: redirects become content that editors own rather than a developer-maintained .htaccess or nginx map block. For a plain Laravel app, this package is the wrong abstraction — use spatie/laravel-missing-page-redirector or a route-level table instead.
Integration feasibility. Low effort, high uncertainty. Installation is a single Composer require plus config publish; there is no database migration in the typical flat-file variant, which keeps the blast radius small and rollback trivial. The real work is not installing it but reconciling it with whatever already handles redirects — a CDN edge rule set, a legacy .htaccess, Laravel route redirects, or a hand-rolled middleware. Any two of those running simultaneously produce ordering bugs that are painful to diagnose.
Technical risk. Concentrated in five places:
Key questions for the maintainer/team:
Stack fit. Only proceed if the target is Statamic. Confirm the exact Statamic minor version and PHP constraint first; a mismatch here ends the evaluation. If the site is Laravel-only, or if redirects are already handled at the CDN, the marginal value is low and the operational surface added is not.
Migration path. Treat this as a consolidation project, not an install. Inventory every existing redirect source — CDN rules, web-server config, legacy CMS tables, marketing-owned spreadsheets — into one canonical list with source, target, status code, and owner. Load that list into the addon, then explicitly disable the superseded mechanisms in the same change window. Half-migrated redirect state is the most common cause of SEO damage in this kind of work.
Compatibility. Two axes: Statamic/Laravel version support, and coexistence with other middleware. The second is routinely missed. Check what else is in the web group and where Statamic pushes its own middleware; a redirect layer that runs after session/auth middleware wastes work on every request, and one that runs after the router never fires.
Sequencing.
Maintenance. Single maintainer, minimal dependents, and a release date that cannot be trusted at face value. Assume you may need to fork. That is acceptable for a small addon — the ceiling on fork cost is low — but it must be a conscious decision, not a surprise during a Statamic upgrade. Budget a review at every Statamic major.
Support. GitHub issues only. No SLA, no vendor to escalate to, no commercial backing implied. Editor-facing breakage lands on the internal team. Write the runbook before launch, not after.
Scaling. Fine for hundreds of redirects, questionable for thousands, and wrong for anything at CDN scale. If redirect volume or traffic is large, the correct architecture is to author redirects in the CP and publish them to the edge (Cloudflare Bulk Redirects, Fastly, or a generated nginx map), keeping the addon as the editorial interface rather than the runtime. That preserves editor workflow and removes the request-path risk.
Failure modes to instrument:
Ramp-up. Developer: under a day to install and understand, plus the caching verification. Editors: the CP UI is the point of the package and should be intuitive, but they need a short policy — prefer 301 unless temporary, never chain, never redirect to a 404, log the reason in the rule. Product/SEO: half a day on status-code semantics and the measurement plan. The dominant effort is the redirect inventory and the dual-run verification, not the software.
How can I help you explore Laravel packages today?