Skip to content

Commit

Permalink
路由修改
Browse files Browse the repository at this point in the history
  • Loading branch information
yxcmf committed May 1, 2018
1 parent 29efc57 commit 8f8241b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions route/route.php
Expand Up @@ -3,12 +3,12 @@
switch (DEFAULT_MODULE) {
//index.php入口路由
case 'home':
Route::rule(':name/:id$', 'home/column/content')->pattern(['name' => '[a-zA-Z]+', 'id' => '\d+']);
Route::rule('search', 'home/index/search');
Route::rule(':name/:id$', 'column/content')->pattern(['name' => '[a-zA-Z]+', 'id' => '\d+']);
Route::rule('search', 'index/search');
Route::rule('captcha/[:id]', "\\think\\captcha\\CaptchaController@index");
Route::rule('single/index/<id>', 'home/single/index')->pattern(['id' => '\d+']);
Route::rule('Sitemap.xml', 'home/Seo/Sitemap');
Route::rule('<name>/<condition?>-<page?>', 'home/column/index')->pattern(['name' => '[a-zA-Z]+', 'condition' => '[0-9_&=a-zA-Z]+', 'page' => '\d+']);
Route::rule('/', 'home/index/index');
Route::rule('single/index/<id>', 'single/index')->pattern(['id' => '\d+']);
Route::rule('Sitemap.xml', 'Seo/Sitemap');
Route::rule('<name>/<condition?>-<page?>', 'column/index')->pattern(['name' => '[a-zA-Z]+', 'condition' => '[0-9_&=a-zA-Z]+', 'page' => '\d+']);
Route::rule('/', 'index/index');
break;
}

0 comments on commit 8f8241b

Please sign in to comment.