Skip to content

Instantly share code, notes, and snippets.

@xeiter
Last active January 11, 2016 10:44
Show Gist options
  • Save xeiter/bbbfab03e5769ab683e1 to your computer and use it in GitHub Desktop.
Save xeiter/bbbfab03e5769ab683e1 to your computer and use it in GitHub Desktop.
Enable mod_rewrite in Ubuntu
1) Run:
sudo a2enmod rewrite
2) Restart the webserver to apply the changes:
sudo service apache2 restart
3) Add the following to the virtual host configuration file /etc/apache2/sites-available
<Directory "<path>">
AllowOverride All
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment