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.

Screenshots

Archived files

Documentation

Source code

Package owner

Lee Kelleher

Lee Kelleher

Lee has 14615 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
8.3.x (untested)
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Lee Kelleher
  • Created: 15/02/2010
  • Current version 1.0
  • License MIT
  • Downloads: 1624