New to Laravel PHP framework. Routes other than "/" doesn't work
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>