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.
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
Enable .htaccess in Apache
Check Out : Disable HTTP TRACE Or TRACK Request In Httpd