How to enable mod_rewrite on Ubuntu 12.04

type on terminal “sudo a2enmod rewrite
then you must edit your apache configuration, open your conf at “/etc/apache2/site-enabled/000-default
search this stuffs :

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
</Directory>

and change to
<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>

restart your apache2 with “sudo /etc/init.d/apache2/ restart
finish„ good luck, happy exercising😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s