why is my cpanel lately always changing/creating .htaccess files?


Oct 2, 2022
cPanel Access Level
Website Owner
it makes my program can't work please tell me how to fix it


<FilesMatch ".(py|exe|php)$">
Order allow,deny
Deny from all
<FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php|wp-l0gin.php|wp-theme.php|wp-scripts .php|wp-editor.php)$">
Order allow,deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! cPanel uses the .htaccess file to control the MultiPHP system. You'll possibly see both of the following example sections, although your machine will likely have different values:

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_value date.timezone "America/Detroit"
<IfModule lsapi_module>
   php_value date.timezone "America/Detroit"
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit
As long as you don't attempt to manually modify those areas, I would not expect them to be causing any problems for your site. Are you seeing certain entries being overwritten? Are errors happening on the site?

You also wouldn't need the IfModule brackets if you're putting this into a .htaccess file, as that's something that's needed for the Apache configuration itself.