• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Enable Mod Rewrite in Ubuntu

August 8, 2014

Another issue when installing Laravel on the Ubuntu server is to make sure you have the mod_rewrite module enabled. You can turn it on by invoking the following command.

sudo a2enmod rewrite
sudo service apache2 reload

sudo a2enmod rewrite sudo service apache2 reload

Once you’ve enabled mod_rewrite, you need to restart Apache. That should fix any of the route issues that you may have. If mod_rewrite is disabled, you usually get 404 errors or file not found. The Laravel routes simply doesn’t work.

Filed Under: Linux, PHP Tagged With: mod_rewrite

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023