georgringer/redirect-generator

Generate redirect entries from a given set of URLs and export all to CSV

Installs: 4 044

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

0.2.0 2020-07-08 08:51 UTC

This package is auto-updated.

Last update: 2021-04-08 10:36:29 UTC


README

This extensions creates proper redirect entries from a CSV file.

Each target entry will be matched by the routing configuration. If the target is http://demo.vm/company/contact, the redirect will be created to the related page id!

Add Redirect

Installation

Requirements

  • TYPO3 9 / 10
  • EXT:redirects

Setup

Install as any other extension:

  • Composer: composer require georgringer/redirect-generator

Usage

Add single redirect

Use the following CLI command:

./bin/typo3 redirect:add /any-url https://domain.tld/your-final-url

The following options are available:

  • --status-code: Define the status code, allowed are 301,302, 303 and 307.
  • --dry-run: If set, the redirect won't be added

Import CSV

Use the following CLI command:

./bin/typo3 redirect:import <path-to-file.csv>

A sample CSV file can be found at EXT:redirect_generator/Resources/Private/Examples/ImportBasic.csv

The following options are available:

  • --dry-run: If set, the redirect won't be added
  • --external-domains: Provide a comma separated list of domains which are external

Export Redirects

Export all redirects as CSV. The optional option --transform-target-url transform the target url like t3://page?uid=1106 into the final URL.

Use the following CLI command:

./bin/typo3 redirect:export export.csv --transform-target-url