我的 url 即 localhost/practice laravel 的默认方法“欢迎”在 routes.php 文件中完美运行
Route::get('/', function () {
return view('welcome');
}
);
如果只是想通过 routes.php 访问同一 url 上的任何内容,例如:
Route::get('/admin', function () {
//return view('welcome');
return "Admin URL.";
}
);
然后发生下面提到的错误。
The requested URL /practice/public/admin was not found on this server. Apache/2.4.23 (Ubuntu) Server at localhost Port 80 Not Found
最佳答案
尝试在您的案例中调用以下 url
localhost/practice/public/index.php/admin
可能是路由问题..
关于php - 在此服务器上找不到请求的 URL/practice/public/admin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39489736/