<?php
 class url_index { function routes() { return [ [ 'pattern' => '#^(?:index\.php)?$#', 'page' => 'index', 'params' => '', 'options' => [ 'redirect' => true, ], ], ]; } function rewrite(ent_link $link, $language_code) { $link->path = ''; return $link; } } 