Prevent Easyapache .htaccess File Modification

By on January 10th, 2019


In this tutorial, we are going to discuss how to prevent .htaccess file modification while running easyapache. .htaccess is a configuration file consists of some rules or instructions that tell the server how to behave in certain situations. Normally .htaccess file consists of some redirect and rewriting URLs for many scripts such as WordPress, Joomla moodle etc. You can refer more from . During the recompilation process of Apache with Easyapache, you may see some entries in your .htaccess file like:

 ‘AddHandler application/x-httpd-php5 .php .html .htm’


We can prevent any .htaccess unwanted entries while recompiling process of Apache/php with Easyapache using the following steps:

1) Login to WHM.

2) Navigate to “Server Configuration”.

prevet htaccess modification


3) Go to “Tweak settings”.

File Modification


4) Select the option “System”.

prevet htaccess modification


5) Set “Depth to recurse for .htaccess checks” to 0.

prevet htaccess modification


6) Click the button ‘Save’.


If you need any further help, please do reach our support department.


Leave a Reply