GICT knowledge base
Prevent Easyapache .htaccess File Modification
Published
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 https://www.interserver.net/tips/kb/htaccess-url-redirect/ . 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”.

3) Go to “Tweak settings”.

4) Select the option “System”.

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

6) Click the button ‘Save’.
If you need any further help, please do reach our support department.
Related guides
How to Install and Uninstall JetBackup for cPanel
How to Install JetBackup for cPanel. JetBackup is one of the leading backup solutions for cPanel & WHM that offers a user-friendly GUI. It provides
WHMSetup SendGrid on your cPanel VPS/Server
Setup SendGrid on your cPanel VPS/Server. SendGrid provides a cloud-based service for reliable transactional and marketing email.
WHMChange cPanel Nameserver Software to PowerDNS Carefully
Review WHM nameserver selection, resolver dependencies, cluster compatibility and DNSSEC requirements before a planned PowerDNS service change.
WHMTroubleshooting Jailed Shell on OpenVZ
cPanel/WHM providing Jailed shell environment for users, this feature giving high-level security for users when doing ssh access to their server.
