使用Laravel Routes.php进行简单HTTP请求的问题


Issue with simple HTTP requests with Laravel Routes.php

我正试图获得最基本的功能在Laravel上工作,我有一个非常困难的时间。我希望客户能够以www.mysite.com/laravel/public/this的形式发送请求,并有家。从主文件夹返回的索引视图文件,所有这些都由laravel/application/routes.php文件中指定的路由决定。

下面的函数,包含在安装中,正确地路由并演示了www.mysite.com/laravel/public如何从用户接收http请求并返回正确的数据

Route::get('/', function()
{
return View::make('home.index');
});

但是一旦我将'/'更改为'this'并发送请求…

Route::get('this', function()
{
return View::make('home.index');
});

我得到"No input file specified."消息。这是怎么发生的?我已经尝试了它与本地主机,它工作得很好,但我希望它工作在我的godaddy共享php服务器

这太简单了。

进入公共目录下的htaccess,修改

rewriterrule ^(.*)$ index.php/$1 [L]

rewriterrule ^(.*)$ index.php?1美元[L]

http://forums.laravel.io/viewtopic.php?id = 1508

我简直不敢相信一个小小的字符会让我如此沮丧