An open API service indexing awesome lists of open source software.

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

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