ソースを参照

更新 'application/route.php'

Me 5 年 前
コミット
0a7f771415
1 ファイル変更6 行追加11 行削除
  1. 6 11
      application/route.php

+ 6 - 11
application/route.php

@@ -9,15 +9,10 @@
 // | Author: liu21st <liu21st@gmail.com>
 // +----------------------------------------------------------------------
 
-// return [
-//     '__pattern__' => [
-//         'name' => '\w+',
-//     ],
-//     '[hello]'     => [
-//         ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
-//         ':name' => ['index/hello', ['method' => 'post']],
-//     ],
-
-// ];
 think\Route::rule('/lst','admin/login/lst'); //后台登录地址替换为/lst(访问(本地)登录页面就直接 localhost/lst 访问)
-//think\Route::rule('','index/index/homepage');//直接访问前台首页
+think\Route::rule('','index/index/index');//直接访问前台首页
+think\Route::rule('/column','index/index/articlelb','get',['ext'=>'html|htm']);//头部栏目页
+think\Route::rule('/index','index/index/index','get',['ext'=>'html|htm']);//网站主页
+think\Route::rule('/detailspage','index/index/articlexq','get',['ext'=>'html|htm']);//文章详情页
+think\Route::rule('/tags','index/base/search','get',['ext'=>'html|htm']);//热门标签页
+think\Route::rule('/search','index/base/searchtop','post',['ext'=>'html|htm']);//头部搜索页