This project is a fork of the original Simple301 version: https://github.com/wkallhof/Simple301
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.)
Nuget Package: Install-Package SimpleRedirects
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).
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.
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.
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'.
Support: Documentation Wiki, Issue Logging