PHPackages                             recranet/craft-redirects - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. recranet/craft-redirects

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

recranet/craft-redirects
========================

Simple redirect management for Craft CMS

v1.7.2(1w ago)0671MITPHP

Since Mar 10Pushed 1mo agoCompare

[ Source](https://github.com/recranet/craft-redirects)[ Packagist](https://packagist.org/packages/recranet/craft-redirects)[ RSS](/packages/recranet-craft-redirects/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

Craft Redirects
===============

[](#craft-redirects)

A redirect management plugin for Craft CMS 5. Manage URL redirects — all from the control panel.

Features
--------

[](#features)

- **Automatic redirects on slug changes** — when an entry (or any element) gets a new URI, a redirect from the old URI is created automatically (configurable in the plugin settings)
- **Exact &amp; regex redirects** with support for captured groups (`$1`, `$2`, etc.)
- **Full-URL matching** — exact-match redirects can include the domain (`https://example.com/old-page`)
- **Expiry dates** — optionally let a redirect expire automatically, e.g. for temporary campaigns
- **Permissions** — access is controlled by the "Manage redirects" user permission
- **301, 302, 307, 308** status codes
- **Chain detection** — warns when a redirect points to another redirect's source URL
- **Search &amp; sort** — filter and sort redirects by any column
- **Bulk actions** — enable, disable, or delete multiple redirects at once
- **CSV import/export** — import redirects from CSV or export your full list
- **Labels &amp; notes** — organize redirects with optional metadata

Requirements
------------

[](#requirements)

- Craft CMS 5.0 or later
- PHP 8.2 or later

Installation
------------

[](#installation)

```
composer require recranet/craft-redirects
php craft plugin/install redirects
```

Usage
-----

[](#usage)

After installation, a **Redirects** item appears in the control panel sidebar with three sections:

### Redirects

[](#redirects)

Create and manage redirects. Each redirect has:

FieldDescriptionFrom URLThe path to redirect from (starts with `/`, or a full URL with domain)To URLThe destination URLTypeHTTP status code (301, 302, 307, 308)Match Type`exact` or `regex`PriorityOrder for overlapping regex patterns — lower numbers are checked firstLabelOptional label for organizationNotesOptional notesExpiry dateOptional — after this date the redirect stops matching**Exact match** redirects are case-insensitive and normalize trailing slashes — `/old-page` and `/old-page/` are treated the same.

**Query strings are preserved**: `/old-page?utm_source=x` redirects to the destination with `?utm_source=x` appended (merged with `&` if the destination already has a query string).

**Regex match** redirects use PCRE patterns. Captured groups can be referenced in the destination URL:

From URLTo URLExample`/blog/(\d{4})/(.*)``/articles/$1/$2``/blog/2024/my-post` -&gt; `/articles/2024/my-post`When multiple regex patterns could match the same URL, the **Priority** field decides the order: lower numbers are checked first. Ties fall back to site-specific before global, then oldest first — so the result is always deterministic.

### Automatic redirects

[](#automatic-redirects)

When an element's URI changes — for example when you edit an entry's slug, or move a structure entry so its children get new URIs — the plugin automatically creates a redirect from the old URI to the new one, scoped to the element's site. It also:

- **Prevents loops** — removes existing redirects whose source matches the new URI
- **Prevents chains** — re-points existing redirects that targeted the old URI directly to the new one
- **Skips drafts and revisions** — only published saves create redirects

This behavior can be disabled — and the status code changed (default 301) — in **Settings → Plugins → Redirects**.

### Permissions

[](#permissions)

Users need the **Manage redirects** permission (under the "Redirects" heading in user/group permissions) to see and use the plugin in the control panel.

### Import

[](#import)

Import redirects from a CSV file. The import flow provides column mapping and a preview before importing. An example CSV is available for download.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance95

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~5 days

Total

12

Last Release

12d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdd6d6951efb85c875a00f2ff0e04c4be6bfc2d5943d37cdafd510cd68d3878b?d=identicon)[recranet](/maintainers/recranet)

---

Top Contributors

[![liamyves](https://avatars.githubusercontent.com/u/217174196?v=4)](https://github.com/liamyves "liamyves (3 commits)")[![rensmaljers](https://avatars.githubusercontent.com/u/72763052?v=4)](https://github.com/rensmaljers "rensmaljers (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/recranet-craft-redirects/health.svg)

```
[![Health](https://phpackages.com/badges/recranet-craft-redirects/health.svg)](https://phpackages.com/packages/recranet-craft-redirects)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393818.3k12](/packages/spicyweb-craft-neo)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

292960.7k38](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k25](/packages/solspace-craft-freeform)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
