How to Enable Mod Rewrite Apache2 on Debian

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Last Updated: October 6, 2013 | Reading Time: < 1 minute

I assume you have already Apache2 installed on your server. Enabling mod_rewrite is quite easy, run the following command:
# sudo a2enmod rewrite

Then, edit your virtual host configuration file in /etc/apache2/sites-available:
<Directory /home/pupungbp/sites/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None #change None to FileInfo
Order allow,deny
allow from all

Then, restart Apache:
# service apache2 restart


Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More To Explore