Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nitishdola's avatar

Laravel only home page shows, others show page not found

I have a laravel 5 hosted in digital ocean with Ubuntu 14.04. The home page works fine, but if I try to login it shows 404 not found ! I have edited the /etc/apache2/sites-available/000-default.conf file and added the code

<Directory "/var/www/html">
    AllowOverride All
</Directory>

Also Module rewrite already enabled. check this url and put http://45.55.87.208

0 likes
2 replies
billmurrin's avatar

Can you post your .htaccess statement for the mod_rewrite? Doesn't seem like your rewrite is working to the index.php page.

bhargav_kaklotara's avatar

have you enabled apache rewrite mod?

if not make a try on this command

sudo a2enmod rewrite

1 like

Please or to participate in this conversation.