# Force HTTPS
RewriteEngine On

# Redirect all HTTP requests to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

# Optional: Prevent www and force non-www (if desired)
# RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
# RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

# Optional: Handle index.php to root (if desired)
# RewriteCond %{THE_REQUEST} /index\.php [NC]
# RewriteRule ^index\.php$ https://%{HTTP_HOST}/ [R=301,L]

# Optional: Improve security by disabling directory browsing
Options -Indexes

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 81.30.107.121
deny from 81.30.107.0/25
deny from 81.30.107.0/24
deny from 81.30.0.0/16
deny from 146.70.99.184

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