php Laravel4:在此服务器上找不到请求的资源 /admin
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25031736/
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
Laravel4 : The requested resource /admin was not found on this server
提问by LoveAndHappiness
there is a very weird problem I face with simple Laravel routing.
我在使用简单的 Laravel 路由时遇到了一个非常奇怪的问题。
Because some screenshots, say sometimes more than 1000 words. Here is what I am encountering.
因为有的截图,有时候说1000多字。这是我遇到的。
It doesn't matter, if the route is set in laravel or not. It just won't accept the name "admin" and only "admin". Every other name is routed correctly.
路线是否设置在 laravel 中并不重要。它只是不接受名称“admin”而只接受“admin”。每个其他名称都正确路由。
Can't explain this. And wouldn't want to make a fresh laravel installation.
无法解释这一点。并且不想重新安装laravel。
I don't use appache, because "php artisan serve" does the job for me.
我不使用 appache,因为“php artisan serve”为我完成了这项工作。
Any clues?
有什么线索吗?
回答by marko
It may that under public you have a folder named admin. That can be source of your problems.
可能在 public 下你有一个名为 admin 的文件夹。这可能是您问题的根源。