php - why show NotFoundHttpException -
i have install fresh copy of laravel 4.2
when visite home route (localhost/public/) work fine when visit other route "localhost/public/kk" show notfoundhttpexception.
here route.php file
<?php route::get('/',function(){ return view::make('hello'); }); route::get('/kk',function(){ return view::make('hello'); });
here .htaccess file
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes... rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l]
the entry point requests laravel application public/index.php, therefore available here --> localhost/public/index.php/kk
for further info can go link.
Comments
Post a Comment