Enable mod rewrite in Apache

Posted by Janos on November 26, 2009

Enable url rewriting like this:

sudo a2enmod rewrite

Then restart Apache:

sudo /etc/init.d/apache2 restart

In the file /etc/apache2/sites-available/default, in the section <Directory /var/www> make sure that ‘AllowOverride All’ appears:

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

Use this link to trackback from your own site.

Comments

Leave a response

Comments