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
Requires
- cecil/theme-installer: ^1.4|^2.0
README
The Redirects component theme for Cecil provides support of _redirects
file 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