집 > Q&A > 본문
thinkphp路由会根据规则进行重定向,不得不说有时候uri很难看。但是有没有办法实现路径上的不重定向。比如\think\Route::register('abc','/about/abc');有没有办法实现访问example.com/abc等效于example.com/about/abc(不进行重定向)之前忘记说了thinkphp5.0
\think\Route::register('abc','/about/abc');
巴扎黑2017-04-10 17:34:20
多看文档,http://www.kancloud.cn/manual/thinkphp/1707