Skip to content

johngodley/redirection

trunk
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

* Update language files

* Target shouldnt be sanitized the same as source

* Bundle
4334579

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 8, 2023 15:21
api
January 22, 2023 08:06
bin
October 30, 2020 10:54
January 22, 2023 08:06
November 12, 2022 12:36
e2e
September 14, 2022 12:10
January 22, 2023 08:06
August 6, 2017 10:39
January 26, 2023 07:22
January 8, 2023 15:21
January 26, 2023 07:22
January 8, 2023 15:21
January 21, 2023 12:56
July 3, 2022 13:02
July 3, 2022 13:02
July 3, 2022 13:02
October 17, 2020 10:28
October 17, 2020 14:42
October 17, 2020 14:42
October 17, 2020 14:57
January 21, 2023 12:56
January 21, 2023 12:56
January 9, 2022 08:21
July 21, 2022 10:34
November 12, 2022 12:36
September 10, 2007 04:34
January 26, 2023 07:22
December 19, 2020 13:40
July 29, 2022 09:16
July 3, 2022 13:02
January 26, 2023 07:22
July 3, 2022 13:02
January 21, 2023 12:56

Redirection

PHP/JavaScript Build Status

Redirection is a WordPress plugin to manage 301 redirections, keep track of 404 errors, and generally tidy up any loose ends your site may have. This is particularly useful if you are migrating pages from an old website, or are changing the directory of your WordPress installation.

Note: this is the current 'trunk' version of Redirection. It may be newer than what is in the WordPress.org plugin repository, and should be considered experimental.

Installation

Redirection can be installed by visiting the WordPress.org plugin page:

https://wordpress.org/plugins/redirection/

Customisation

Redirection provides a large set of WordPress action and filter hooks that can be used to extend or customise the plugin. These can found on the Redirection Hooks page.

Permissions

Access to the Redirection admin interface is given to users who can manage_options. You can modify this with permission filters, described on the Redirection permissions page.

Building

Redirection is mostly a PHP plugin, but does contain files that need to be built. For this you'll need Gulp, Node, and Yarn installed. Install required modules with:

yarn install

Language files

gulp pot - Updates language files

React

Some parts of the UI are React and can be built with:

yarn build

To use in development mode then set REDIRECTION_DEV_MODE to true in PHP, and run:

yarn start

This will start Webpack in hot-reload mode, and you can make changes to JS files and have them auto-loaded.

Releasing

Finally, to produce a release copy:

gulp plugin

Support

Please raise any bug reports or enhancement requests here. Pull requests are always welcome.

You can find a more detailed description of the plugin on the Redirection home page

Translations can be added here:

https://translate.wordpress.org/projects/wp-plugins/redirection