Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
fromUri: /winter2016
toUri: forward:https://www.example.com/marketing/campaigns/winter2016.html
Mappings The mappings are delegated to a separate module ( virtual-uri
) through the info.magnolia.virtualuri.VirtualUriFilter
class and are stored in their own registry ( VirtualUriRegistry
), which allows to reference each mapping also in YAML definition files. All virtual URI mappings can be located via the Definitions app no matter whether they come from JCR or a YAML file:
...
Advanced Tables - Table Plus | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
( Magnolia 5.5.6+) You can configure virtual URI mappings in a YAML definition file inside a light module folder:
...
class | required Class that performs the mapping. See the section Mapping classes below. |
fromUri | required Pattern to match in the requested URI. |
toUri | required Concrete URI where the request is mapped to. |
site | required (for the Specifies the site that should be used for the mapping. |
...
. |
For easier orientation, if you have to configure a lot of mappings, you can store them in folder-like structures rather than in one long flat list of mappings:
...