Options +FollowSymLinks
RewriteEngine On
# Redirect non-www to www and ensure HTTPS
RewriteCond %{HTTP_HOST} ^audio-educator\.com [NC]
RewriteRule ^(.*)$ https://www.audio-educator.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.audio-educator\.com [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.audio-educator.com/$1 [R=301,L]
# Prevent direct access to files & directories outside /public
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /public/$1 [L]
# Ensure index.php is loaded correctly
RewriteRule ^(/)?$ public/index.php [L]
# 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)
php_flag display_errors Off
php_value max_execution_time 60
php_value max_input_time 90
php_value max_input_vars 3000
php_value memory_limit 512M
php_value post_max_size 256M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php82"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
php_flag display_errors Off
php_value max_execution_time 60
php_value max_input_time 90
php_value max_input_vars 3000
php_value memory_limit 512M
php_value post_max_size 256M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php82"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
# END cPanel-generated php ini directives, do not edit
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit