# ----------------------------------------------
#  Basic Apache & PHP configuration
# ----------------------------------------------
# Allow the use of .htaccess in this directory
Options +FollowSymLinks
# Ensure symbolic links are followed (needed for some hosting setups)
AllowOverride All
# ----------------------------------------------
#  PHP runtime handling
# ----------------------------------------------
# *If your host uses PHP‑FPM or a non‑mod_php setup,
#   uncomment the following line to force PHP handling.*
# AddHandler application/x-httpd-php .php
# ----------------------------------------------
#  Disable error display in production
# ----------------------------------------------
php_flag  display_errors On
php_value error_reporting E_ALL
# ----------------------------------------------
#  Rewrite rules (nice URLs, fallback for missing files)
# ----------------------------------------------
RewriteEngine On
# If a request maps to an existing file or directory – serve it directly
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Otherwise, direct all requests to index.php (optional)
# If you prefer explicit pages, comment out the following two lines
# RewriteRule ^.+$ index.php [L]
# ----------------------------------------------
#  Custom error pages
# ----------------------------------------------
# ErrorDocument 400 /errors/400.html
# ErrorDocument 404 /errors/404.html
# ErrorDocument 500 /errors/500.html

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