1
votes

I am trying to get the most basic functionality to work on Laravel and am having a really hard time. I want the client to be able to send a request in the form of www.mysite.com/laravel/public/this and have the home.index view file returned from the home folder, all of this being determined by routes specified in the laravel/application/routes.php file.

The following function, included in the installation, routes correctly and demonstrates that www.mysite.com/laravel/public works to take the http request from the user and return the correct data

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

But as soon as I change '/' to 'this' and send the request...

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

I get "No input file specified." message. How is this happening? I have tried it with localhost and it works fine but I want it to work on my godaddy shared php server

1

1 Answers

4
votes

Its too simple.

Go to htaccess in public directory and change

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

to

RewriteRule ^(.*)$ index.php?$1 [L]

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

I cannot believe a mere character has caused me so much frustration