2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

image

axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  • Tuesday, February 6, 2018
  • by axllent
  • Repository
  • 1 Watchers
  • 19 Stars
  • 2,518 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Intelligent 404 Redirector for SilverStripe

An extension to add additional functionality to the existing 404 ErrorPage. If a 404 page is called, it tries to guess the intended page by matching up the last segment of the url to all SiteTree pages. It also uses soundex to match similar sounding pages to find other alternatives., (*1)

Other DataObjects (eg: products) can be added too provided they contain a Link() function, (*2)

How it works

If a 404 error is detected (note: does not work in dev mode by default):, (*3)

  1. It will search SiteTree for all matching URLSegments, as well as any that sound the same (using PHP's soundex()).
  2. If 1 exact match is found, a 301 redirect is sent.
  3. Else if no exact match is found, and 1 similar page is found, a 301 redirect is sent to the similar page.
  4. Else if more than 1 exact or similar page is found, a regular 404 page is shown and the list of possible options is shown (ie: "Were you looking for one of the following pages?") directly beneath it.
  5. Else a regular 404 page is shown.

Requirements

  • SilverStripe 4

For SilverStripe 3, please refer to the SilverStripe3 branch., (*4)

Installation

composer require axllent/silverstripe-intelligent-404

Usage

Please see Configuration.md for configuration options and documentation., (*5)

The Versions

06/02 2018

dev-master

9999999-dev https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

MIT The MIT License (MIT)

The Requires

 

silverstripe redirect

06/02 2018

dev-silverstripe3

dev-silverstripe3 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

MIT The MIT License (MIT)

The Requires

 

silverstripe redirect

08/12 2017

2.0.2

2.0.2.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect

17/10 2017

2.0.1

2.0.1.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect

24/08 2017

2.0.0

2.0.0.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect

27/05 2016

1.0.2

1.0.2.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect

18/05 2016

1.0.1

1.0.1.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect

21/12 2015

1.0.0

1.0.0.0 https://github.com/axllent/silverstripe-intelligent-404

Add additional smart redirection functionality to the existing 404 ErrorPage

  Sources   Download

The MIT License (MIT)

The Requires

 

silverstripe redirect