I am trying to set up my laravel project on my EC2 Instance for AWS. I have successfully uploaded the files to the server using SFTP, and I rewrote the 000-default.conf file to point to the public folder of the project.
The home route is loading fine, but none of the other routes are working? Any idea what is going on here? They all work fine on local host (MAMP) and on other servers.
All of the other routes show a NOT FOUND page (The requested URL /fans was not found on this server (for instance) )
index.php/fans
work?mod_rewrite
isn't enabled then. Not sure how EC2 instances work, but if you can SSH in an it's Apache then just enable it witha2enmod rewrite
then restart Apache.a2enmod rewrite
, you may need to elevate yourself withsudo
, not sure how it works on Amazon.