2017 © Pedro Peláez
 

silverstripe-module silverstripe-misdirection

This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

image

nglasl/silverstripe-misdirection

This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  • Tuesday, May 8, 2018
  • by nglasl
  • Repository
  • 3 Watchers
  • 9 Stars
  • 22,460 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 55 Versions
  • 10 % Grown

The README.md

misdirection

The current release is 3.1.1, (*1)

This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling., (*2)

Requirement

  • SilverStripe 3.1 → 4.0

This module does not require the CMS., (*3)

This repository is no longer supported, however this module is still supported here., (*4)

Getting Started

Overview

These allow both simple and regular expression link redirections, and can be used for legacy page redirection, vanity URLs (more below), or redirection based on specific URL patterns., (*5)

link-mapping, (*6)

The link mapping with the highest priority (followed by greatest specificity) will be used, and replaces the default automated URL handling out of the box. This default behaviour may be configured to only hook into a page not found:, (*7)

nglasl\misdirection\MisdirectionRequestFilter:
  enforce_misdirection: false

When there are multiple matches, the link mapping first created will be used. This default behaviour may be configured to prioritise the link mapping most recently created:, (*8)

nglasl\misdirection\LinkMapping:
  priority: 'DESC'

Vanity URLs and Fallbacks

vanity-URLs-and-fallbacks, (*9)

Vanity URLs

While it is possible to create these manually (as above), a content author may directly create a link mapping from a page. However, it should be noted that these are instantiated with a low priority of 2, and therefore other link mappings with higher priority will take precedence., (*10)

Fallbacks

When a user happens to encounter a page not found, a specified rule may be triggered to prevent displaying this. It is possible for an administrator to configure a global fallback through the site configuration, however a specific page setting will take precedence., (*11)

  • Select Settings
  • Select Pages

What's Happening?

The link mappings are processed server side to prevent inefficient and problematic mappings, using a request filter., (*12)

When you want to see exactly what is happening behind the scenes for a given URL, the model admin provides a powerful testing interface!, (*13)

testing, (*14)

Once a maximum number of requests has been reached, the server will respond with a page not found. The following is the default configuration:, (*15)

nglasl\misdirection\MisdirectionRequestFilter:
  maximum_requests: 9

testing-maximum-requests, (*16)

Bypassing Misdirection

It is possible to bypass the request filter completely by appending ?misdirected=1 to the URL. This is fantastic for debugging, however does not apply to the testing interface for obvious reasons., (*17)

Default Automated URL Handling

This may be completely replaced, in which case legacy URLs will no longer resolve based on page version history., (*18)

nglasl\misdirection\MisdirectionRequestFilter:
  replace_default: true

When a page is moved, the appropriate link mappings are automatically created and maintained. This allows full control over which legacy URLs remain in the system., (*19)

Maintainer Contact

Nathan Glasl, nathan@symbiote.com.au

The Versions

08/05 2018

dev-master

9999999-dev https://github.com/nglasl/silverstripe-misdirection

This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

08/05 2018

3.0.0

3.0.0.0 https://github.com/nglasl/silverstripe-misdirection

This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

03/05 2018

2.2.x-dev

2.2.9999999.9999999-dev https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

03/05 2018

2.2.26

2.2.26.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

15/03 2018

2.2.25

2.2.25.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

01/08 2017

2.2.24

2.2.24.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

26/06 2017

2.2.23

2.2.23.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

23/05 2017

2.2.22

2.2.22.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

28/03 2017

2.2.21

2.2.21.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

07/03 2017

2.2.20

2.2.20.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

27/02 2017

2.2.19

2.2.19.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

17/02 2017

2.2.18

2.2.18.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

17/02 2017

2.2.17

2.2.17.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

17/02 2017

2.2.16

2.2.16.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

16/02 2017

2.2.15

2.2.15.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

16/02 2017

2.2.14

2.2.14.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

01/02 2017

2.2.13

2.2.13.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirection mapping redirect 404 link mapping page not found http 404

10/11 2016

2.2.12

2.2.12.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

25/08 2016

2.2.11

2.2.11.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

20/06 2016

2.2.10

2.2.10.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

20/06 2016

2.2.9

2.2.9.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

20/06 2016

2.2.8

2.2.8.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

06/06 2016

2.2.7

2.2.7.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

06/06 2016

2.2.6

2.2.6.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

03/06 2016

2.2.5

2.2.5.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

03/06 2016

2.2.4

2.2.4.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

12/05 2016

2.2.3

2.2.3.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

18/03 2016

2.2.2

2.2.2.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

16/03 2016

2.2.1

2.2.1.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

15/03 2016

2.2.0

2.2.0.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

11/03 2016

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

11/03 2016

2.1.8

2.1.8.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

25/02 2016

2.1.7

2.1.7.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

05/02 2016

2.1.6

2.1.6.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

03/02 2016

2.1.5

2.1.5.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

03/02 2016

2.1.4

2.1.4.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

03/01 2016

2.1.3

2.1.3.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

30/12 2015

2.1.2

2.1.2.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

23/12 2015

2.1.1

2.1.1.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

18/12 2015

2.1.0

2.1.0.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

02/11 2015

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

02/11 2015

2.0.3

2.0.3.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

27/10 2015

2.0.2

2.0.2.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

21/10 2015

2.0.1

2.0.1.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

08/09 2015

2.0.0

2.0.0.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

28/07 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

28/07 2015

1.0.8

1.0.8.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

29/05 2015

1.0.7

1.0.7.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

url silverstripe redirect 404 link mapping page not found

20/04 2015

1.0.6

1.0.6.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

20/02 2015

1.0.5

1.0.5.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

18/02 2015

1.0.4

1.0.4.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

30/01 2015

1.0.3

1.0.3.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

12/01 2015

1.0.2

1.0.2.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

12/12 2014

1.0.1

1.0.1.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping

03/12 2014

1.0.0

1.0.0.0 https://github.com/nglasl/silverstripe-misdirection

A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.

  Sources   Download

BSD-3-Clause

The Requires

 

rewrite request silverstripe response redirect regex regular expression link mapping