https://github.com/cecilapp/theme-redirects
The Redirects component theme for Cecil provides support of _redirects file generation.
https://github.com/cecilapp/theme-redirects
cecil cecil-theme-component
Last synced: 4 months ago
JSON representation
The Redirects component theme for Cecil provides support of _redirects file generation.
- Host: GitHub
- URL: https://github.com/cecilapp/theme-redirects
- Owner: Cecilapp
- License: mit
- Created: 2025-09-16T11:37:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-16T19:16:52.000Z (9 months ago)
- Last Synced: 2025-10-21T15:56:25.412Z (8 months ago)
- Topics: cecil, cecil-theme-component
- Language: Twig
- Homepage: https://cecil.app/themes/components/
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redirects component theme
The _Redirects_ component theme for [Cecil](https://cecil.app) provides support of `_redirects`file generation.
After installation and without any configuration, this component theme generate a [`_redirects`](./layouts/_default/page.redirects.twig) file containing HTML's redirections created by Cecil (automatic or created manually with the [`redirect`](https://cecil.app/documentation/content/#redirect) front matter variable).
Services that support the [`_redirects`](https://specs.ipfs.tech/ipips/ipip-0002/) file:
- [Netlify](https://docs.netlify.com/manage/routing/redirects/redirect-options/)
- [statichost](https://www.statichost.eu/docs/routing/)
- [Cloudflare Pages](https://developers.cloudflare.com/pages/configuration/redirects/)
## Installation
```bash
composer require cecil/theme-redirects
```
> Or [download the latest archive](https://github.com/Cecilapp/theme-redirects/releases/latest/) and uncompress its content in `themes/redirects`.
## Usage
Add `redirects` in the `theme` section of your site configuration:
```yaml
theme:
- redirects
```
### Add redirections
```yaml
server:
redirects:
- from: https://xxxxxx/*
to: https://xxxxxx/:splat
status: 301 # HTTP status code, optional
force: true # redirect even if the file exists, optional
```