Enable mod_rewrite in Apache

The following source code can be used to enable mod_rewrite in Apache server.

Step 1
Take up the terminal and type in:

sudo a2enmod rewrite

Note: You will need root permission

Step 2
Now restart Apache server using:

service apache2 restart

You’ve enabled mod_rewrite!

Leave a Reply

Your email address will not be published. Required fields are marked *