Skip to content

thinkcreate/radiant-nostalgia-extension

Repository files navigation

Nostalgia

An extension for the Radiant CMS for easily tracking and rewriting legacy urls.

Overview

Track

Nostalgia tracks 404s that occur. Via the dashboard (using Jim Gay’s dashboard extension github.com/saturnflyer/radiant-dashboard-extension) you get an overview of all requests that failed.

Rewrite

Nostalgia defines a page type called “not found with rewrites”. This is a 404-page with the possibility to ‘rescue’ requests using rewrite rules.

Install

Install the extension:

$ rake production radiant:extensions:nostalgia:migrate

$ rake production radiant:extensions:nostalgia:update

Track

For viewing all the failed requests, just install the dashboard extension (github.com/saturnflyer/radiant-dashboard-extension, this extension was tested with revision d147225).

Rewrite

When you have an overview what urls fail, you can add rewrite rules:

  • set the page type of the current 404 page to “not found with rewrites”

  • add a page-part named “rewrites”

  • define rewrite rules in this page-part

Example rewrite rules:

/index.html => /
/short-url/? => /page/with/long/url/
/old-section/(.*) => /new-section/$1

Meta

Created by Gert Goet

github.com/thinkcreate/radiant-nostalgia-extension

Released under the MIT License: www.opensource.org/licenses/mit-license.php

Enjoy!

About

Easily administer legacy urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published