ZenphotoCMS 1.6.x

redirector.php

A plugin to redirect internal URLs. Primarily intended for URLS that otherwise would cause 404 not found errors.

URLs are redirected before before any theme page setup occurs. External URLs are not supported.

The plugin supports a JSON object file or a CSV file with outdate URL/new URL pairs.

Examples of files supported:

JSON:

{ "http://example.com/oldurl1/": "http://example.com/newurl1/", "http://example.com/oldurl2/": "http://example.com/newurl2/", }

Remember to escape the slashes!

CSV (comma separated):

http://example.com/oldurl1/,http://example.com/newurl1/
http://example.com/oldurl2/,http://example.com/newurl2/
(…)

To use such a catalogue file create a folder redirector within the root plugins folder of your install and place the file within. You can upload several and enable the one to use on the plugin options.

Tags
author

Malte Müller (acrylian)

Interfaces, Classes, Traits and Enums

redirectorOptions
redirector plugin options
redirector
redirection handler class

Search results