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:
composer require cecil/theme-redirectsOr download the latest archive and uncompress its content in
themes/redirects.
Add redirects in the theme section of your site configuration:
theme:
- redirectsserver:
redirects:
- from: https://xxxxxx/*
to: https://xxxxxx/:splat
status: 301 # HTTP status code, optional
force: true # redirect even if the file exists, optional