Enabling mod_rewrite in apache2 is a simple procedure.
a2enmod rewrite
Edit /etc/apache2/sites-available/000-default or it may be called /etc/apache2/sites-available/default
and change the following line:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
change it to:
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Lastly, restart apache2:
/etc/init.d/apache2 restart
No comments:
Post a Comment