
RewriteEngine On

# 1. WWW -> NON-WWW
RewriteCond %{HTTP_HOST} ^www\.becekwinreal\.store$ [NC]
RewriteRule ^ https://becekwinreal.store%{REQUEST_URI} [R=301,L,NE]

# 2. Paksa HTTPS
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://becekwinreal.store%{REQUEST_URI} [R=301,L,NE]

# 3. Pengaturan direktori
Options -MultiViews -Indexes

<IfModule mod_dir.c>
    DirectorySlash Off
</IfModule>

# 4. Lewati file yang sudah ada
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]

# 5. URL lucky dengan atau tanpa slash
RewriteRule ^mobile/casino/lucky/?$ mobile/casino/lucky/index.html [L]

# 6. Halaman utama
DirectoryIndex index.php index.html
