laravel 404 not found

Error yang di tampilkan oleh Laravel

Not Found
 
The requested URL /oilanalysis/dashboard was not found on this server.
Apache/2.4.10 (Debian) Server at debian.jaranguda.com Port 80

Solusi

Fedora

Buka /etc/httpd/conf/httpd.conf cari bagian

<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

ubah menjadi

<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
</Directory>

restart service Apache

systemctl restart httpd

Debian

Aktifkan modul rewrite

a2enmod rewrite

Buka /etc/apache2/apache2.conf cari bagian

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

ubah menjadi

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

Leave a comment

Your email address will not be published. Required fields are marked *