Redirect Extensions

Add more Pro-features by installing our Redirect Extensions. These extensions can be installed from the October CMS marketplace.

Redirect Conditions

makePartial('installed', ['installed' => $extensions['Vdlp.RedirectConditions']]) ?>

This plugin allows developers to create their own Redirect Conditions.

What is a Redirect Condition?

When a positive match occurs in the redirect engine, all registered redirect conditions will be checked if they pass. If one of the conditions does not pass the redirect will not take place.

A redirect condition must implement RedirectConditionInterface.

Each redirect condition must have:

  • getCode() - A unique code.
  • getDescription() - A short description.
  • getExplanation() - A brief explanation on when or how to use it.
  • getFormConfig() - A form configuration array.
  • passes(RedirectRule $rule, string $requestUri) - Logic whether the condition passes with the given $rule and $requestUri.

Redirect Conditions: Example

makePartial('installed', ['installed' => $extensions['Vdlp.RedirectConditionsExample']]) ?>

This is an example extension plugin for the Redirect Conditions plugin. This example plugin shows developers how to develop their own condition extensions.

Redirect Conditions: UserAgent

makePartial('installed', ['installed' => $extensions['Vdlp.RedirectConditionsUserAgent']]) ?>

Adds UserAgent specific conditions to the Redirect plugin.

Redirect Conditions: Domain

makePartial('installed', ['installed' => $extensions['Vdlp.RedirectConditionsDomain']]) ?>

Adds Domain conditions to the Redirect plugin.

Redirect Conditions: Header

makePartial('installed', ['installed' => $extensions['Vdlp.RedirectConditionsHeader']]) ?>

Adds Header conditions to the Redirect plugin.