Getting mod-rewrite working on apache2

Apache 2 does (Apache/2.2.22 on my RPi) didn’t have mod-rewrite set up from scratch.  It took a fair bit off work to get it up and running since there are now a zillion different places you have to find to make all the changes.

Enable mod-rewrite:
$ sudo a2enmod rewrite

Edit the sites-available/default file
$ sudo nano /etc/apache2/sites-available/default

And edit the Directory directive
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
#Order allow,deny
#allow from all
</Directory>

But that took too long to solve :/

Leave a Reply