New to Laravel PHP framework. Routes other than "/" doesn't work New to Laravel PHP framework. Routes other than "/" doesn't work laravel laravel

New to Laravel PHP framework. Routes other than "/" doesn't work


Try http://localhost/photozoom/public/index.php/users for now. And then enable pretty URLs.


The .htaccess file in the /public directory enables pretty URLs.In order for the .htaccess file to do its work:

  • Apache2 must have mod_rewrite enabled (a2enmod rewrite)
  • In your Apache configuration you must use the AllowOverride option toallow the .htaccess file to 'override' your default Apache2configuration.

For example:

<Directory /var/www/photozoom/>     Options Indexes FollowSymLinks    AllowOverride All    Require all granted</Directory>


There are two AllowOverride in the httpd.conf file.

<Directory />    AllowOverride All    Require all denied</Directory>

and

DocumentRoot "D:/www"<Directory "D:/www">    AllowOverride All    Require all granted</Directory>