Skip to main content

Plone addon for redirects

Project description

Purpose

This is a Plone addon which allows to manage redirects. It allows to add new redirects which may point to internal or external URLs.

Compatibility

Supports Plone 4.3 and 5.1.

Installation

Add the package as dependency to your setup.py:

setup(...
      install_requires=[
        ...
        'ftw.redirector',
      ])

or to your buildout configuration:

[instance]
eggs += ftw.redirector

and rerun buildout.

After restarting your Plone, install ftw.redirector through the Plone addons control panel, quickinstaller or portal_setup.

After installing the addon, go to the Plone control panel for redirects in order to add new redirects.

Usage

After successfully installing the addon, go to the Plone control panel, where a new “Redirect Configuration” link is added:

https://raw.github.com/4teamwork/ftw.redirector/master/docs/controlpanel.png

Redirect rules can easily be managed by editing the configuration:

https://raw.github.com/4teamwork/ftw.redirector/master/docs/edit-config.png

How it works

  • The redirect config is a dexterity object (mainly for ftw.publisher compatibility).
  • Redirects are only applied if no content is found (404).
  • Redirect rules are applied top-down: top roles have higherpriority. The first matching rule is applied, later rules arenot considered.
  • Redirects match when the request path starts with thesource path.
  • Each rule requires a source path and a destination.
  • The source path must start with a slash and should not be the site root.
  • The destination may be a path (starting with a slash) or an URL to an external site.

Changelog

1.1.2 (2020-01-09)

  • Add ftw.redirector portal_type translation to plone domain. [tinagerber]

1.1.1 (2019-12-16)

  • Provide precompiled bundle. [tinagerber]

1.1 (2019-10-01)

  • Require openpyxl < 2.6 since newer ones no longer support Python 2.7 [jone]
  • Add support for Plone 5.1.x. [mbaechtold]
  • Add new profiles for Plone 5 (differentiated by title) [djowett-ftw]

1.0.1 (2016-02-26)

  • Match exact path element, not “startswith”. [jone]

1.0.0 (2015-11-23)

  • Initial implementation [jone]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ftw.redirector, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size ftw.redirector-1.1.2.tar.gz (716.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page