php - Laravel Cleaner Url issue in ubuntu, How to fix it? -
php - Laravel Cleaner Url issue in ubuntu, How to fix it? -
i'm using laravel latest version. added new route it's not working.
route::get('/about',function() { homecoming view::make('about'); }); when type localhost/index.php/about starts working. checked articles suggest edit .htaccess , did same.
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule> but 1 time again didn't work did changes in config file. content of config file.
<virtualhost *:80> servername sar.dev documentroot "/var/www/laravel/public" <directory "/var/www/laravel/public"> options indexes followsymlinks multiviews allowoverride </directory> </virtualhost> this method failed. i'm working on ubuntu 13.10. there other way prepare ?
to go comment. noticed using modified .htaccess not default laravel.
give laravel default .htaccess file seek / next index.php part.
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes... rewriterule ^(.*)/$ /$1 [l,r=301] # handle front end controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ /index.php [l] </ifmodule> this solution has helped me when coming across similar error site not work when going /route , had utilize /index.php/route are.
php .htaccess ubuntu laravel laravel-4
Comments
Post a Comment