[R]evolutionary [I]n [M]ind ™

Icon

perfection | target | think out of the box

How to activate mod_rewrite on Ubuntu

Here are the quick and dirty trick to activate mod_rewrite on ubuntu. By default mod_rewrite is compiled by ubuntu package, you only just activate/ enable it. This is the step:

1. Activate the module

sudo a2enmod rewrite

2. Edit the apache site enabled

sudo gedit /etc/apache2/sites-enabled/000-default

3. Ubah AllowOverride dari “None”  ke  All

AllowOverride All

4) Restart Apache:

sudo /etc/init.d/apache2 force-reload

Filed under: /etc , , , ,