https://github.com/zotonic/mod_import_anymeta_dispatch
Dispatcher for redirecting old uris referring to content imported by mod_import_anymeta
https://github.com/zotonic/mod_import_anymeta_dispatch
Last synced: 9 months ago
JSON representation
Dispatcher for redirecting old uris referring to content imported by mod_import_anymeta
- Host: GitHub
- URL: https://github.com/zotonic/mod_import_anymeta_dispatch
- Owner: zotonic
- License: apache-2.0
- Created: 2015-08-10T11:22:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T14:19:30.000Z (over 9 years ago)
- Last Synced: 2025-10-14T11:34:09.513Z (9 months ago)
- Language: Erlang
- Size: 14.6 KB
- Stars: 0
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mod_import_anymeta_dispatch
Dispatcher for redirecting old uris referring to content imported by mod_import_anymeta
This module depends on the anymeta-id mapping tables generated by mod_import_anymeta[1].
The dispatcher will crash if those are not created before enabling this module.
This module maps the following Anymeta URLs:
* `index.php`
* `/id/lang/slug`
* `/id/123`
* `(...)/id.php/(uuid|id|name)`
* `(...)/(article|artefact|...)--.html`
* `(...)/(article|artefact|...)-.html`
For the `id/123` dispatch rule to work you need to change Zotonic’s `id` dispatch rule in `mod_base`.
Add this rule to your site’s dispatch rules:
{id, ["rsc",id], controller_id, [{ssl, any}]}
[1] https://github.com/zotonic/mod_import_anymeta