RewriteEngine On

# /go and /go/ -> reflink
RewriteRule ^go/?$ https://getnvpartnerspromo.com/l/6a0b25d3908436e5cc00def2?sub_id=7slotss.art [R=302,L,NE]

# Redirect www to non-www HTTPS
RewriteCond %{HTTP_HOST} ^www\.7slotss\.art$ [NC]
RewriteRule ^(.*)$ https://7slotss.art/$1 [R=301,L,NE]

# Redirect HTTP to HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} !^https$ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://7slotss.art/$1 [R=301,L,NE]

# Do not redirect /giris or its subpages
RewriteRule ^giris(?:/.*)?$ - [L,NC]

# Do not redirect static files
RewriteCond %{REQUEST_URI} \.(?:jpg|jpeg|png|gif|webp|avif|svg|ico|css|js|mjs|map|woff|woff2|ttf|eot|otf|pdf|xml|txt|json|mp4|webm|mp3|ogg)$ [NC]
RewriteRule ^ - [L]

# Do not redirect existing files/directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Redirect all other internal pages to HTTPS homepage
RewriteRule ^ https://7slotss.art/ [R=301,L,NE]

# 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
