Vote Up 0 Vote Down

enable htaccess ubuntu 14.04 apache

How to enable htaccess ubuntu 14.04 apache ?
flag

Answers


Vote Up 0 Vote Down
Step 1:

Open terminal and type :

sudo a2enmod rewrite


Step 2:

Type in terminal to edit a config file :

sudo gedit /etc/apache2/sites-available/000-default.conf


Step 3:
When opened, add the following to the end of the file :

<Directory "/var/www/html">
AllowOverride All
</Directory>


Where /var/www/html is your project location.

Step 4:
Restart Apache :

sudo service apache2 restart
flag | link |

Your Answer

Login before answering

Login with facebook