Wednesday, 29 October 2014

How to activate .htaccess file in apache 2.4.7

By vm  |  23:59 1 comment

.httaccess file is same as the apache httpd.conf but if you made any changes in httpd.conf it will reflects on every project on apache, if you want to use only for specific websites use .htaccess file in that particular website root folder. 

Here is the Steps to Activate .htaccess file on Ubuntu 14.04 :

First Step
Open file as
sudo vim /etc/apache2/apache2.conf
Second Step
remove comment sign (#) if you find it before this line ( line number 187 approx.)
AccessFileName .htaccess
Third Step
Then find the line where there is
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverrideNone Require all granted </Directory>
replace "None" with "All"
AllowOverride All 
Fourth Step :
add .htaccess file to root folder of your Website
in my case ---> /var/www/CDRTool/ folder
Last Step :
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

Author: vm

Hello, I am Author, decode to know more: In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet.

1 comment:

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP