aplia/redirectoperators

This package is abandoned and no longer maintained. The author suggests using the aplia/swark package instead.

eZ publish legacy template operators for performing URL redirect from within a template

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 5

Type:ezpublish-legacy-extension

v1.0.1 2020-01-07 08:53 UTC

This package is auto-updated.

Last update: 2020-01-07 08:55:58 UTC


README

This package is deprecated and can be replaced by using the redirect operator from composer package Swark instead.

ie. {redirectrelative( '' )} becomes {redirect( '', 301 )} and {redirectabsolute( '' )} becomes {redirect( '', 301, 'abs' )}.

Redirectoperators

eZ publish legacy template operators for performing URL redirect from within a template. The operators will send an HTTP header 301.

  • redirectabsolute
  • redirectrelative

Latest Stable Version Minimum PHP Version

Installation

Install with Composer:

composer require aplia/redirectoperators

Usage

From within a template, write:

{redirectrelative( '' )}

for instance:

{redirectrelative( '/path/to/file.php' )}

or

{redirectabsolute( '' )}

for instance:

{redirectabsolute( '' )}