15 votes

This package is marked as retired

For a v4.5+ compatible version, please use uComponents instead.

301 Moved Permanently

Enables website administrators to configure 301 Moved Permanently redirects for old content pages/urls. This is achieved using a custom 404 handler.

This functionality requires a new property (with the alias of "umbraco301MovedPermanently") to be added to your document-type. 

This will work in a similar method to the "umbracoUrlAlias" property alias. If a content node can not be found from the NiceUrl, then the NotFoundHandlers are actioned; until alternative content is found, otherwise a 404 error.

If a umbraco301MovedPermanently value is found, then the user is redirected to the new content page/url along with the 301 HTTP status code.

To enable this functionality, please add the following setting as the first of the "NotFoundHandlers" section in /config/404handlers.config:

<notFound assembly="Bodenko.Umbraco.NotFoundHandlers" type="SearchFor301MovedPermanently" />

It is important that it does not appear after the "handle404" entry, as it will not work as intended.

Remember to keep the value in lower-case, and exclude the leading slash and trailing ".aspx" from the umbraco301MovedPermanently property value.


This functionality is very similar to the Permanent Redirect project, in that it creates 301 redirects, however instead of keeping the old content node in the CMS, it can be deleted/removed and the new content node will be able to pick up any requests to the old URL.


Archived files


Source code

Package owner

Lee Kelleher

Lee Kelleher

Lee has 15802 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Lee Kelleher
  • Created: 15/02/2010
  • Current version 1.0
  • License MIT
  • Downloads on Our: 1.7K