.htacess file in apache

How To Enable and Disable .htaccess In Apache

how to enable and disable .htaccess files provides a way to make configuration on a per-directory basis.

Where a file containing one or more configuration directives, is placed in a particular document directory and then it’s apply to that directory or sub directories.

You should use .htaccess file. when you don’t have access of the main server configuration file. 

Check Out : Httpd: Could Not Reliably Determine The Server’s Fully Qualified Domain Name

Note: You must have .htaccess file on your server. If you want to control configuration through that files.

You can define these code between the Virtual-host and define directory path according to your need.

Disable .htaccess in Apache

<Directory “/vaw/www”>

Allowoverride none


Enable .htaccess in Apache

Check Out : Disable HTTP TRACE Or TRACK Request In Httpd

<Directory “/vaw/www/html”>

Allowoverride all


That’s it



Please enter your comment!
Please enter your name here

three × three =