A
A
Andr Lw12014-07-27 13:06:05
WAMP
Andr Lw1, 2014-07-27 13:06:05

Laravel 4. Why doesn't Route work?

I write in the app/routes.php file:
Route::get('/', '[email protected]');
when you go to the main page, everything is fine.
And if I write, for example:
Route::get('/post', '[email protected]');
then when I go to site.ru/post I
write an error Not Found
In the controller: return 'Hello world'; I don't think it's the controller.
I'm running wamp latest version.
Why does not it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nurbekbayke, 2014-07-27
@lw1

Post the complete routes.php and Postcontroller.php file.
try /index.php/post
mod_rewrite enabled?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question