You can define all the functions of the default controller that you
want to match:

FUNCTIONS = ["A", "B", "C"]

routes_in = (
('/', '/myapplic/default/index'),
('/(%s)' % "|".join(FUNCTIONS), r'/myapplic/default/\1'))

routes_out = (
('/myapplic/default/index', '/'),
('/myapplic/default/(%s)' % "|".join(FUNCTIONS), r'/\1'))

Also, when you list your rules be careful in what order they are
matched. In your example base.css (and robots.txt too) would be
rewritten as /myapplic/default/base.css because the rule with /
$anything would be triggered earlier.

Reply via email to