请求的资源 / 未在此服务器上找到 PHP
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38124626/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 01:30:11 来源:igfitidea点击:
The requested resource / was not found on this server PHP
提问by Thiago Souza
回答by Thiago Souza
Missing index.php
in the root folder. Thank you all.
缺少index.php
的根文件夹。谢谢你们。
回答by Robert LUgo
回答by Udara Gunawardhana
Save the error blade file in another name and set the route in that name. eg:
以另一个名称保存错误刀片文件并以该名称设置路由。例如:
index.blade.php save welcome.blade php
Route:
路线:
Route::get('/welcome', function () {
return view('welcome');
});
回答by noe
in rails, Missing
在轨道上,失踪
def index
end
in your controller.
在您的控制器中。
if not, restart your computer and everything is fine
如果没有,请重新启动计算机,一切正常