cecil/theme-redirects

Cecil component theme Redirects

Fund package maintenance!
ArnaudLigny
Open Collective

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Twig

Type:cecil-theme

1.0.1 2025-09-16 13:34 UTC

This package is auto-updated.

Last update: 2025-09-16 19:16:55 UTC


README

The Redirects component theme for Cecil provides support of _redirectsfile generation.

After installation and without any configuration, this component theme generate a _redirects file containing HTML's redirections created by Cecil (automatic or created manually with the redirect front matter variable).

Services that support the _redirects file:

Installation

composer require cecil/theme-redirects

Or download the latest archive and uncompress its content in themes/redirects.

Usage

Add redirects in the theme section of your site configuration:

theme:
  - redirects

Add redirections

server:
  redirects:
    - from: https://xxxxxx/*
      to: https://xxxxxx/:splat
      status: 301 # HTTP status code, optional
      force: true # redirect even if the file exists, optional