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

1.1.1(1mo ago)022MITPHP

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 1mo ago

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

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

[](#craft-redirects)

A redirect management plugin for Craft CMS 5. Manage URL redirects, track 404s, and keep your site's URL structure clean — all from the control panel.

Features
--------

[](#features)

- **Exact &amp; regex redirects** with support for captured groups (`$1`, `$2`, etc.)
- **301, 302, 307, 308** status codes
- **404 logging** — automatically tracks not-found URLs with hit counts
- **Hit tracking** — see how often each redirect is used and when it was last hit
- **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 custom/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 (must start with `/`)To URLThe destination URLTypeHTTP status code (301, 302, 307, 308)Match Type`exact` or `regex`LabelOptional label for organizationNotesOptional notes**Exact match** redirects are case-insensitive and normalize trailing slashes — `/old-page` and `/old-page/` are treated the same.

**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`### 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.

### 404 Log

[](#404-log)

View all URLs that returned a 404, sorted by hit count. From here you can create a redirect directly from any logged URL.

Settings
--------

[](#settings)

Navigate to **Settings &gt; Redirects** to configure:

- **404 Logging** — Enable or disable automatic 404 request logging (enabled by default)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance88

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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 ~1 days

Total

3

Last Release

59d ago

### Community

Maintainers

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

### 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

395798.1k10](/packages/spicyweb-craft-neo)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[craftcms/ckeditor

Edit rich text content in Craft CMS using CKEditor.

48359.1k52](/packages/craftcms-ckeditor)

PHPackages © 2026

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