Skip to main content

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]

Release files for ftw.redirector 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ftw.redirector 1.1.2
File Size Uploaded
ftw.redirector-1.1.2.tar.gz 716.6 kB Details

Release files / ftw.redirector-1.1.2.tar.gz

Download URL ftw.redirector-1.1.2.tar.gz
Size 716.6 kB
Tags Source
SHA-256 checksum
How to use checksums
71ceb5f6909856f406532523054353a5c149df76e4605b0cead7cc88f56b6480
BLAKE2b-256 checksum
How to use checksums
662d7ecfe4ba59f4f18ae3d8e29ee5dedc60055f6b98e1e1caa9421f6e68ff00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page