# 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 "Asia/Kolkata"
</IfModule>
<IfModule lsapi_module>
   php_value date.timezone "Asia/Kolkata"
</IfModule>
# END cPanel-generated php ini directives, do not edit

# ====================================================================
# GOTOCLASS CUSTOM SECURITY & ROUTING
# ====================================================================

# 1. STOP FILE SNOOPING (Disable Directory Listing)
Options -Indexes

# 2. FORCE HTTPS (Security)
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# 3. HIDE .PHP EXTENSIONS
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

# 4. PROTECT CONFIG FILE
<Files "config.php">
    Order Allow,Deny
    Deny from all
</Files>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
