Config 4.2: Rerouting

If Case is Reroute, Genelet will internally re-write the URL into a new URL in the standard format:

http://WEBSITE/HANDLER/role/tag/component?action=string&query…

So you need to at least map out, or by assignment, the triplet {role, tag, component} in order to rewrite meaningfully. If role is a login role, a proper authentication is automatically enforced.

Here is an example of pattern:

{
"Reg": "^\/(\w+)/(\d+)-([\w\_]+)\.(\w+)\/$"
"Mats": ["role", "book_id", "subject", "tag"]
"Case": "Reroute"
"Que": "component=book&action=edit"
}

So a GET request to

http://WEBSITE/admin/1234-New_York_Weather.html

will be re-written internally to

http://WEBSITE/HANDLER/admin/html/book?action=edit&book_id=1234&subject=New_York_Weather