venveo/craft-redirect

Craft redirect plugin provides an easy way to enter and maintain 301 and 302 redirects and 404 error pages.

Installs: 14 012

Dependents: 1

Suggesters: 0

Security: 0

Stars: 3

Watchers: 4

Forks: 2

Open Issues: 17

Type:craft-plugin

4.0.0-beta.8 2024-07-24 20:45 UTC

README

Important Note This is a fork of the original redirect plugin by Dolphiq with efforts to better maintain and support it. The codebase has been overhauled to have minimal impact on the website when not in use. 404s are now registered in the database and matched via regular expressions rather than application routes. This means your dynamic route format will have changed from the previous version of the plugin.

Additionally, the registered 404s has been rebuilt to better handle more numerous entries.

Features

  • Create 301 and 302 redirects
  • Create dynamic redirects to match regular expression patterns
  • Track how many hits a redirect gets and when it was last hit
  • Schedule redirects to publish and expire at certain dates
  • Create intelligent redirects that will link to an existing element - if that element's URL changes, so will the redirect destination URL
  • Intelligently normalizes input redirects to remove base URLs when appropriate, making it hard for content editors to break things
  • Track 404s registered on the website and quickly create redirects for them
  • Automatically create redirects when an element URI changes
  • Per-site permissions
  • Supports multi-site
  • Supports Feed Me for importing redirects

What it doesn't have

  • Support guarantees
  • GraphQL support
  • Graphs/analytics

Why another redirect plugin?

Trust us - we didn't want to make this plugin; however, we found that many websites we inherit use Dolphiq redirect and wanted a smooth transition. Further, as a Digital Marketing Agency, we want to have explicit control over the feature-set of the redirect plugin and its data.

For most people starting fresh, we strongly recommend using the excellent Retour plugin by nystudio107

Updating form Dolphiq Redirect

You can migrate directly from Dolphiq Redirect to Venveo Redirect. Please see the migration guide

Requirements

This plugin requires Craft CMS 3.4 or later

Installation

Click here for the installation readme.

Example of the redirect overview

Screenshot

Example of the missed URLs overview

Screenshot

Creating a redirect from a 404 entry

Screenshot

Importing redirects using Feed Me

Screenshot

Using the Redirect plugin

You can use the Redirect plugin to redirect simple routes but also use it for more advanced route matches.

Click here for the complete overview of rule examples.