Options -Indexes

RewriteEngine On

# The Controller Framework uses secure session cookies.
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Existing files/directories are served normally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# All application paths are routed through the front controller.
RewriteRule ^(.*)\/?.*$ index.php/$1 [L,QSA,NC]

# Use PHP 8.3 on a cPanel/EA server.
<IfModule mime_module>
    AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
</IfModule>
