RewriteEngine On

# /go and /go/ -> reflink
RewriteRule ^go/?$ https://meetwinahora.com/l/6970e17f1240c021100cd332?sub_id=https://7slots-giris-tr.com/ [R=302,L,NE]

# /tr/go and /tr/go/ -> same reflink
RewriteRule ^tr/go/?$ https://meetwinahora.com/l/6970e17f1240c021100cd332?sub_id=https://7slots-giris-tr.com/ [R=302,L,NE]

# Do not redirect /tr or anything else inside it
RewriteRule ^tr(?:/.*)?$ - [L,NC]

# Redirect www homepage to HTTPS non-www
RewriteCond %{HTTP_HOST} ^www\.7slots-giris-tr\.com$ [NC]
RewriteRule ^$ https://7slots-giris-tr.com/ [R=301,L]

# Redirect HTTP homepage to HTTPS non-www
RewriteCond %{HTTP_HOST} ^7slots-giris-tr\.com$ [NC]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !^https$ [NC]
RewriteRule ^$ https://7slots-giris-tr.com/ [R=301,L]

# Do not redirect homepage
RewriteRule ^$ - [L]

# 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 homepage
RewriteCond %{REQUEST_URI} !^/$
RewriteRule ^ https://7slots-giris-tr.com/ [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
