Skip to content

Instantly share code, notes, and snippets.

@40
Created April 8, 2012 05:41
Show Gist options
  • Save 40/2335029 to your computer and use it in GitHub Desktop.
Save 40/2335029 to your computer and use it in GitHub Desktop.
Enable mod_rewrite in apache 2+ ubuntu distro
#COMMANDS
cd /etc/apache2/mods-enabled
touch rewrite.load
vi rewrite.load
#INSERT CODE
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
#EDIT IN
/etc/apache2/sites-available/default
#FIND
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
#CHANGE TO
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
#RESTART APACHE
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment