Add a redirect
This guide covers sending visitors from an old address to a new one: adding a redirect by hand, turning the missed paths visitors hit into redirects, and what Spillway does by itself when a page's address changes.
Before you start: a manager or admin account (redirects.manage).
Steps
- Marketing → Redirects. The table lists every redirect with its hits; the Missed paths panel lists the addresses visitors asked for that did not exist, with how often and when.
- Add one by hand. Add redirect opens the New redirect dialog: From path (a path on this site such as
/old-donate; matched exactly, ignoring case and a trailing slash), To (a path on this site or a full URL) and Status code: 301 Permanent for a page that moved for good, 302 Temporary for a short campaign. Choose Create. - Fix a missed path. In Missed paths, choose Create redirect on a row: the dialog opens with the path filled in. Add where it should go and Create. Dismiss drops a path you do not want to redirect.
- Turn one off or change it. Untick Enabled to pause a redirect without deleting it; Edit opens the dialog again; Delete asks first.
Check the result
- Open the old address: the browser lands on the new one, and any query string (
?utm_source=newsletter) comes along. - The redirect's Hits count goes up each time it fires.
- The path no longer shows in Missed paths, or shows Redirected.
Notes
- Changing the slug of a published page creates a 301 from its old address automatically; it appears in this table. Drafts never create redirects, and moving a page back removes the stale one so visitors never loop.
- Scanner noise (
.php,.env,wp-adminrequests) never reaches the missed paths. - Moving a whole site to Spillway? Import a website creates the redirects for the old addresses.
Going further
- Write a post and Review and publish content if you skipped them.
- Redirects in the manual; api.md, Redirects and the 404 log.
Spillway 0.1.24