Skip to content

The Redirects component theme for Cecil provides support of _redirects file generation.

License

Notifications You must be signed in to change notification settings

Cecilapp/theme-redirects

Repository files navigation

Redirects component theme

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

About

The Redirects component theme for Cecil provides support of _redirects file generation.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors

Languages