修改路由

This commit is contained in:
tsf 2024-04-25 16:13:34 +08:00
parent 2161363dc4
commit da371ee5f2
2 changed files with 7 additions and 7 deletions

View File

@ -95,7 +95,7 @@ return [
// 是否开启路由解析缓存 // 是否开启路由解析缓存
'route_check_cache' => false, 'route_check_cache' => false,
// 是否强制使用路由 // 是否强制使用路由
'url_route_must' => false, 'url_route_must' => true,
// 域名部署 // 域名部署
'url_domain_deploy' => false, 'url_domain_deploy' => false,
// 域名根如thinkphp.cn // 域名根如thinkphp.cn

View File

@ -13,7 +13,7 @@
use think\Route; use think\Route;
// ################################################################下载################################################################ // ################################################################下载################################################################
// ################################################################下载################################################################ // ################################################################下载################################################################
Route::get('/download', 'admin/download/demo'); Route::get('download', 'admin/download/demo');
// ################################################################管理后台################################################################ // ################################################################管理后台################################################################
// ################################################################管理后台################################################################ // ################################################################管理后台################################################################
@ -34,8 +34,8 @@ Route::get('/download', 'admin/download/demo');
// ################################################################APP接口################################################################ // ################################################################APP接口################################################################
// ################################################################APP接口################################################################ // ################################################################APP接口################################################################
// // 处理404错误 z // 处理404错误 z
// Route::miss(function(){ Route::miss(function(){
// return '404 Not Found'; return '404 Not Found';
// // 或者你可以重定向到一个错误页面,或者进行其他处理 // 或者你可以重定向到一个错误页面,或者进行其他处理
// }); });