php controller 404 routes default page d- default urls category id w-

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
$controller = '404';
$routes = [
'/' => 'default',
'/(?P<page>[\d-]+)' => 'default',
$urls['category'].'/(?P<id>[\w-]+)' => 'category/default',
$urls['category'].'/(?P<id>[\w-]+)/(?P<page>[\d-]+)' => 'category/default',
'top/(?P<type>[\w-]+)/(?P<order>[\w-]+)' => 'video/top',
];