Skip to content

patrickdemooij9/SimpleRedirects

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleRedirects

Simple Redirect Manager for Umbraco 8/9

This project is a fork of the original Simple301 version: https://github.com/wkallhof/Simple301

Build status

Simple Redirects Manager is a simple to use, yet extensible, Umbraco Back-Office package that allows you to manage your 301 redirects directly in Umbraco. Includes a simple and intuitive refinement system where you can search for specific text within the URLs or notes defined for the redirect.

Utilizes ngTable for an AngularJs driven data table which includes ordering by column (Old Url, New Url, Notes and Last Updated) and simple pagination with configurable items per page selector.

Integrates directly with the Umbraco Content Pipeline, inserting itself in the first position to intercept incoming requests and checking against an in-memory collection of redirects for optimal performance (the only time a database is hit is through updating redirects in the back-office and on application start.)

Getting Started

Nuget Package: Install-Package SimpleRedirects

Configuration

You are able to change the configuration in your appsettings.json. By default the configuration is as follows:

"SimpleRedirects": {
    "CacheEnabled": true,
    "CacheDuration": 86400, 
    "OnlyRedirectOn404": false
  } 

SimpleRedirects.CacheDurationInSeconds : This allows you to configure how long redirects are cached within the site. This only affects the user facing redirects so that the application doesn't read from the database for every request in the site. If you modify redirects within the back-office, the cache is automatically cleared per action (Add, Update, Delete).

SimpleRedirects.CacheEnabled : This allows you to toggle whether or not caching is enabled. Since this package is hit for every requested URL in the site, it is important to consider the performance implications of disabling cache. Use this to troubleshoot redirect issues.

SimpleRedirects.OnlyRedirectOn404: When enabling this, the redirects will only take place if there is no page/image on that URL. You can enable this for performance reasons.

These caching settings were added in order to support load balanced environments, where in previous versions the applications held on to redirects only in memory (persisting to the DB only if modified), which doesn't work in a load balanced environement (they may exist in a memory collection on one server, but not on the other).

Usage

1. Locate Simple Redirects Manager in the Content section

Navigate to the Umbraco > Content section. You will find a 'Manage Redirects' tab in the right pane. Select this to view the SimpleRedirects Redirect Manager. From this window you can view and manage all of the redirects for your site. Go to Umbraco > Content > Manage Redirects

2. Refine & Locate

Use the provided Text search by entering text in the 'Search redirects' input box. As you type, results will display in real time. Use pagination and the results-per-page selectors to view more or fewer redirects at a time in the table.

Refine by Text Search, and Pagination

3. Add, Update & Delete

Use the provided actions in the Action column to Add, Update & Delete existing redirects. Update your redirect in line with the rest of the redirects (make sure to click 'Save') or simply fill out a new redirect at the bottom of the table and click 'Add'.

Add, Update & Delete

Support: Documentation Wiki, Issue Logging

About

Simple redirect manager for the Umbraco Back-Office

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 40.5%
  • C# 25.8%
  • CSS 19.1%
  • JavaScript 14.6%