Tuesday, January 13, 2015

Enable htaccess in Apache 2.4.7 on Ubuntu

Enable htaccess in Apache 2.4.7 on Ubuntu

open terminal
ctrl+alt+t 
 open etc folder into this open apache2
etc->apache2->apache2.conf 
into this file 
  <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride none
    Require all denied
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
 
First enable rewrite using this command:
sudo a2enmod rewrite
Then restart apache2:
sudo service apache2 restart 
Enjoy :) 

No comments:

Post a Comment

GitHub repository using Git Bash command

  To add a project to a GitHub repository using Git Bash command line, you can follow these steps: Create a new repository on GitHub by logg...