.htaccess - Apache redirect is failing for Laravel -


i have mod_rewrite enabled on apache2 , allowoverride all in default file. apache (after restarting) still can't seem redirect when given pretty url laravel.

works (returns: users!): localhost/laratest/public/index.php/users

doesn't work (404): localhost/laratest/public/users

my .htaccess: (i've tried 1 suggested in documentation no avail)

<ifmodule mod_rewrite.c>     options -multiviews     rewriteengine on      rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-f     rewriterule ^ index.php [l] </ifmodule> 

laravel routes.php:

route::get('/', function() {     return view::make('hello'); });  route::get('users', function() {     return 'users!'; }); 

i using default lamp stack , configuration in ubuntu. ideas why isn't working?

have set rewritebase /laratest/public?

options +followsymlinks -indexes rewriteengine on rewritebase /laratest/public rewritecond %{request_filename} !-f rewriterule ^ index.php [l] 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -