Download the PHP package neos/redirecthandler without Composer

On this page you can find all versions of the php package neos/redirecthandler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package redirecthandler

Flow redirect handler

Latest Stable Version License Travis Build Status

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"

Using this package with Neos CMS

Check out the adapter package for Neos.

Upgrading from 2.x

The hit counter has been disabled by default.

You can enable it again in your Settings:

Neos:
  RedirectHandler:
    features:
      hitCounter: true

The default status codes for redirects has been changed from 307 to 301 as mostly permanent redirects are desired instead of temporary.

You can enable the old behavior in your Settings:

Neos:
  RedirectHandler:
    statusCode:
      redirect: 307

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.

What to do when redirects are not triggered but other controller actions

Override the routing order like this:

Be careful when using this configuration, as this will make the redirect component act first before any other route is resolved and could for example prevent a login or similar.

Possible problems


All versions of redirecthandler with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
neos/flow Version ^7.0 || ^8.0 || dev-master
neos/redirecthandler-storageimplementation Version ~3.0 || dev-master
league/csv Version ^9.2
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package neos/redirecthandler contains the following files

Loading the files please wait ...