Redirects and the 404 monitor
Rilea SEO's redirect manager sends visitors and search engines from old URLs to new ones, and the 404 monitor shows you which broken URLs people are actually hitting. Here's how to use both.
Rilea SEO docsVersion 1.1.04 min read
In short
- Turn both on in Settings, then Redirects & 404. They're on by default.
- Changing the URL of a published post creates a 301 redirect automatically.
- Choose from five match types (exact, contains, starts with, ends with and regex) and six status codes: 301, 302, 307, 308, 410 and 451.
- Import and export redirects as CSV, so you can move them between sites or edit them in a spreadsheet.
Turn it on
Go to Rilea SEO, then Settings, then Redirects & 404. The options are:
- Enable redirect manager: runs your redirects.
- Auto-create 301 when a published URL changes: adds a redirect from the old URL whenever you change a published post's slug.
- Log 404 errors: records requests for pages that don't exist.
- Max 404 log entries: how many entries to keep. Older entries are removed first.
- Redirect all 404s to homepage: sends every missing page to the homepage. We don't recommend it: search engines treat mass redirects to the homepage as soft 404s, and visitors lose the context of what they were looking for.
Add a redirect
- Go to Rilea SEO, then Redirects.
- Enter the source: the old path, such as
/old-page/. - Enter the target: the new path or a full URL.
- Choose the match type and status code, then save.
Match types
| Match type | Matches | Example source |
|---|---|---|
| Exact | Only that exact path | /summer-sale/ |
| Contains | Any path containing the text | discontinued |
| Starts with | Any path beginning with the text | /2019/ |
| Ends with | Any path ending with the text | .html |
| Regex | A regular expression | ^/blog/(\d+)/(.*)$ |
With regex, you can reuse captured groups in the target as $1, $2 and so on. For example, source ^/news/(.*)$ with target /blog/$1 moves a whole section.
Redirects are checked in the order they were added, and the first match wins. Paths are compared without trailing slashes and ignoring capital letters, so /Old-Page/ and /old-page match the same rule.
Status codes
| Code | Use it when |
|---|---|
| 301 | The page has moved permanently. This is the right choice almost every time. |
| 302 | The move is temporary and the old URL will come back. |
| 307 | A temporary redirect that keeps the request method; mainly for forms and apps. |
| 308 | A permanent redirect that keeps the request method. |
| 410 | The page is gone for good and has no replacement. Search engines drop it faster than a 404. |
| 451 | The page is unavailable for legal reasons. |
410 and 451 don't need a target. Visitors see a short "Gone" or "Unavailable For Legal Reasons" page.
Automatic redirects
With automatic redirects on, changing the slug of a published post, page or product creates an exact 301 from the old URL to the new one, labelled "Auto: slug changed" in the list. If you change a slug back, Rilea SEO won't create a redirect that points a URL at itself.
Use the 404 monitor
Go to Rilea SEO, then 404 Monitor, to see the missing URLs being requested, with how often each was hit.
Work through the list with the most hits first:
- A page that moved: add a 301 to its new address.
- A typo in a link on your own site: fix the link where it is, then add a redirect for any external links you can't change.
- A deleted page with a close replacement: redirect to the replacement.
- A deleted page with no replacement: leave it as a 404, or add a 410.
- Bots probing for files you don't have, such as
/wp-login.bak: ignore them.
Don't redirect everything. A missing page with no relevant replacement should return a 404 or 410; redirecting it somewhere unrelated helps nobody.
Import and export
On the Redirects screen, Export CSV downloads every redirect with the columns source, target, code, match, status and hits.
To import, upload a CSV with at least the source and target in the first two columns. The third column sets the status code (301 if empty) and the fourth sets the match type (exact if empty). A header row starting with source is skipped.
source,target,code,match
/old-page/,/new-page/,301,exact
/2019/,/archive/,301,startsMoving from another SEO plugin? The importer brings existing redirects across from Yoast SEO Premium, Rank Math and the other supported plugins. See import from your old SEO plugin.
Troubleshooting
A redirect doesn't work
- Check the source is a path starting with
/, and that an older pattern redirect isn't matching first. - Clear your page cache and test in a private window. Browsers cache 301s aggressively.
- Check a server-level redirect, such as one in
.htaccessor your host's dashboard, isn't running first.
A redirect loops
Two redirects are pointing at each other, or a pattern redirect also matches its own target. Look for a contains or starts-with rule whose target contains the same text.
The 404 log is filling up
Lower the maximum number of entries, or clear the log after you've dealt with the important ones. Bot traffic often produces many one-off entries.
Still stuck? Check the support FAQ or get in touch, and we'll help.
Get helpNext guides
Settings reference: every tab explained
Rilea SEO keeps all its site-wide options under one Settings screen, split into twelve tabs.
Fix duplicate title, meta or schema tags
Every page should have exactly one title tag, one meta description, one canonical tag and one block of structured data.
Developer hooks and filters
Rilea SEO exposes filters for everything it prints: titles, descriptions, canonical URLs, robots directives, the schema graph and breadcrumbs.
Put your SEO budget somewhere else.
Install Rilea SEO, import your settings and keep every feature, for free.