## a标签跳转的变化
```
~~~
<a target="_blank" href="/c{$v['id']}/" >{$v['name']}</a></li>
~~~
```
## 路由设置
```
~~~
use think\Route;
//Route::rule('new/:id',‘index/index/category’);
Route::get('c<id>', 'index/Index/category');
Route::get('d<id>', 'index/Index/detail');
Route::get('m<id>', 'index/Index/my_list');
Route::get('keyword_<keyword>', 'index/Index/search',['keyword'=>'.*']);
Route::get('search_<search_word>', 'index/Index/search',['search_word'=>'.*']);
Route::get('keyword<keyword?>', 'index/Index/search',[],['keyword'=>'.+']);
Route::get('search<search_word?>', 'index/index/search',[],['search_word'=>'.+']);
return [
//别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
'__alias__' => [
],
//变量规则
'__pattern__' => [
],
~~~
```
## 效果
http://yuecheng.cn/c15/
## 搜索的时候要匹配所有字符 .* 否则中文不支持