RewriteEngine On
RewriteBase /

# Basic Auth
AuthType Basic
AuthName "Restricted Area"
AuthUserFile .htpasswd
Require valid-user

# HTTPS yönlendirme kuralı
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# /webmail isteklerini engelleme kuralı
RewriteCond %{REQUEST_URI} ^/webmail [NC]
RewriteRule ^ - [F,L]

# Diğer kurallarınızı buraya ekleyin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html [QSA,L]

# 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
