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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -