neos/redirecthandler

Basic API to handle HTTP redirects with the Flow Framework

Installs: 116 551

Dependents: 6

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 7

Open Issues: 8

Type:neos-package

2.0.1 2018-04-25 19:39 UTC

README

The Neos.RedirectHandler package for Flow allows to create redirects that will be returned to the client.

It can be used to divert changed URLs to new targets without having to adjust the webserver configuration for each redirect.

Installation

To use the redirect package, you have to install this package

composer require "neos/redirecthandler"

and additionally a storage package. A default one for storing redirects in the database can be installed using composer with

composer require "neos/redirecthandler-databasestorage"

Configuration

Note: When using this to handle redirects for persistent resources, you must adjust the default rewrite rules! By default, any miss for _Resources/… stops the request and returns a 404 from the webserver directly:

# Make sure that not existing resources don't execute Flow
RewriteRule ^_Resources/.* - [L]

For the redirect handler to even see the request, this has to be removed. Usually the performance impact can be neglected, since Flow is only hit for resources that once existed and to which someone still holds a link.