diff --git a/public/.htaccess b/public/.htaccess index cbc786893a070c031adbbd5f9cfb3ec3051bdf0b..d9ee23c990e8e77163f9c0fc280eec853de0dd86 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -4,5 +4,5 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] + RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] diff --git a/route/route.php b/route/route.php index ec2137ba6dc49eae655d398a68147da4b120ee48..a6c82076928661ad2d52ca4984aa55ec2c77eb07 100644 --- a/route/route.php +++ b/route/route.php @@ -11,6 +11,8 @@ use think\facade\Route; +Route::miss('api/Miss/index'); + Route::group('admin', function() { Route::rule( 'Login/index', 'admin/Login/index', 'post'