Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save facilita-tecnologia/085de437c0bad3b1ad184f09848f63b6 to your computer and use it in GitHub Desktop.
Save facilita-tecnologia/085de437c0bad3b1ad184f09848f63b6 to your computer and use it in GitHub Desktop.
Resolver problema de 404 laravel 5.4 e php 7.1
2
down vote
I resolved by doing the following: Check if there is a module called rewrite.load in your apache at:
$ cd /etc/apache2/mods-enabled/
If it does not exist execute the following excerpt:
$sudo a2enmod rewrite
Otherwise, change the Apache configuration file to consolidate use of the "friendly URL".
sudo nano /etc/apache2/apache2.conf
Find the following code inside the editor:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Change to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
After that restart the Apache server.
sudo /etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment