Created
February 14, 2018 03:22
-
-
Save facilita-tecnologia/085de437c0bad3b1ad184f09848f63b6 to your computer and use it in GitHub Desktop.
Resolver problema de 404 laravel 5.4 e php 7.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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