# ----------------------------------------------------------------------
# 1. SECURITY: Block public access to all .txt log files
# ----------------------------------------------------------------------
<FilesMatch "\.txt$">
    Order allow,deny
    Deny from all
</FilesMatch>

# ----------------------------------------------------------------------
# 2. SECURE REDIRECT: Force HTTP to HTTPS (SSL)
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Redirect all HTTP requests to HTTPS
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# ----------------------------------------------------------------------
# 3. cPanel-generated php ini directives
# ----------------------------------------------------------------------
# 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 error_log "/home/rajapushpa/logs/php.error.log"
   php_flag log_errors On
</IfModule>
<IfModule lsapi_module>
   php_value error_log "/home/rajapushpa/logs/php.error.log"
   php_flag log_errors On
</IfModule>
# END cPanel-generated php ini directives, do not edit