This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

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:

Redirect rules can easily be managed by editing the configuration:

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 notbe the site root.
  • The destination may be a path (starting with a slash)or an URL to an external site.

Changelog

1.0.1 (2016-02-26)

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

1.0.0 (2015-11-23)

  • Initial implementation [jone]
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ftw.redirector-1.0.1.tar.gz (712.1 kB) Copy SHA256 Checksum SHA256 Source Feb 26, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting