Redirect Plugin for Flextype
Redirect plugin will help you to know how many readers of every page in your website.
The following dependencies need to be installed for Redirect Plugin.
Item | Version | Download |
---|---|---|
flextype | 0.9.16 | download |
twig | >=2.0.0 | download |
- Download & Install all required dependencies.
- Create new folder
/project/plugins/redirect
- Download Redirect Plugin and unzip plugin content to the folder
/project/plugins/redirect
Key | Value | Description |
---|---|---|
enabled | true | true or false to disable the plugin |
priority | 100 | Redirect plugin priority |
redirect | [] | Redirect specific data |
You may define unlimited redirects in project/config/plugins/redirect/settings.yaml
Here is basic example of simple redirects:
redirect:
-
from: '/home'
to: './'
status: 301
-
from: '/'
to: './en'
status: 301
The MIT License (MIT) Copyright (c) 2021 Sergey Romanenko