Saturday, November 17, 2018

Rewrite URLs or Enable with mod_rewrite for Apache2 on Ubuntu 16.04

In this POST I will show how to enable mod_rewrite for apache2

First, we need to install  Apache2, Before that Update Ubuntu with below command.

sudo apt-get update

Install Apache

sudo apt-get install apache2

Now activate mod_rewrite using below command

sudo a2enmod rewrite

Restart Apache Server

sudo systemctl restart apache2
or
sudo service apache2 restart

No comments:

Post a Comment