Options -Indexes
RewriteEngine On

# ── Force HTTPS ───────────────────────────────────────────────────
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_X_FORWARDED_PROTO} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ── Block direct access to data files ─────────────────────────────
RewriteRule ^data/ - [F,L]

# ── Desktop Redirect (Intentional) ────────────────────────────────
RewriteCond %{HTTP_USER_AGENT} !Android [NC]
RewriteCond %{HTTP_USER_AGENT} !iPhone [NC]
RewriteCond %{HTTP_USER_AGENT} !iPad [NC]
RewriteCond %{HTTP_USER_AGENT} !iPod [NC]
RewriteCond %{HTTP_USER_AGENT} !Mobile [NC]
RewriteRule ^(.*)$ https://festive.info/$1 [R=302,L]

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