SilverStripe\CMS\Controllers\OldPageRedirector

Synopsis

class OldPageRedirector extends Extension {
}

Hierarchy

Extends

  • SilverStripe\Core\Extension

Methods

public

  • find_old_page() — Attempt to find an old/renamed page from some given the URL as an array
  • onBeforeHTTPError404() — On every URL that generates a 404, we'll capture it here and see if we can find an old URL that it should be redirecting to.