uams-web / statamic-redirects
Redirect rules for Statamic: a redirects global set served on the 404 path, rules on redirect domains, an edge redirect manifest, and a marketing-redirect request and approval workflow.
Package info
github.com/UAMS-Web/aether-redirects
Type:statamic-addon
pkg:composer/uams-web/statamic-redirects
Requires
- php: ^8.4
- bacon/bacon-qr-code: ^3.1
- setasign/fpdf: ^1.9
- statamic/cms: ^6.40
- uams-web/aether-shared: >=0.3 <1.0
Requires (Dev)
- cweagans/composer-patches: ^2.0
- driftingly/rector-laravel: ^2.6
- khanamiryan/qrcode-detector-decoder: ^2.0.3
- larastan/larastan: ^3.13
- laravel/pint: ^1.32
- orchestra/pest-plugin-testbench: ^5.1
- orchestra/testbench: ^11.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-phpstan: ^5.2
- rector/rector: ^2.7
- uams-web/patches-orchestra-testbench-core: ^1.1
- uams-web/patches-pest-plugin-mutate: ^1.4
- uams-web/patches-statamic-cms: ^1.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 16:12:57 UTC
README
A Statamic add-on for redirect rules: a redirects global set answered on the site's 404 path, rules served on redirect domains, an edge redirect manifest built from those rules, and a Control Panel workflow for requesting and approving marketing redirects.
The wiki covers setting up a site, requesting and approving redirects, the redirect rules, permissions, configuration and commands.
Requirements
PHP 8.4 or later, Statamic 6.40 or later, and uams-web/aether-shared 0.3 or later, which Composer installs with the add-on.
Installation
composer require uams-web/aether-redirects
Statamic discovers the add-on through Composer. To change its settings, publish the config file:
php artisan vendor:publish --tag=aether-redirects-config
Host patch requirement
The add-on serves the entry blueprints of the redirect_domains and redirect_hosts collections from its own resources/collection-blueprints directory, under the collections.<handle> namespace. Statamic resolves a collection blueprint from an add-on directory only with the statamic-blueprint-namespace-slash patch from uams-web/patches-statamic-cms. A host without the patch fails when it reads either collection's blueprints, with Undefined array key 0.
cweagans/composer-patches applies a patch only from the root package, so the host registers it. Require the package, list the patch in the host's own patches.json or extra.patches, then run composer patches-relock and composer patches-repatch:
composer require --dev uams-web/patches-statamic-cms
The collections themselves stay with the host, as does the code that writes them. Deleting the host's own copies of the two blueprints is the host's change.
Renamed from statamic-redirects
This add-on was uams-web/statamic-redirects; that package is abandoned in favor of uams-web/aether-redirects. A site that required the old package changes the following:
- Run
composer remove uams-web/statamic-redirectsandcomposer require uams-web/aether-redirects. - Code that references the PHP namespace changes
UAMSWeb\RedirectstoUAMSWeb\Aether\Redirects. - The config file is
config/aether-redirects.phpand its publish tag isaether-redirects-config. A publishedconfig/statamic-redirects.phpis renamed to match; the add-on handle and permissions follow the package name, so re-save any settings and role permissions stored under the old handle. - Published assets move to
public/vendor/aether-redirects; runphp artisan vendor:publish --tag=aether-redirects --forceand deletepublic/vendor/statamic-redirects.
Environment variables, view namespaces and Artisan commands keep their names.
License
MIT. See LICENSE.
Documentation
- Wiki: guides and reference for using the add-on.
docs/DEVELOPMENT.md: developing the add-on against a host.docs/SUBMISSION.md: the Packagist and Marketplace checklist.docs/DECISIONS.md: the decision log.