# sahistiem.lv - Apache / shared hosting
Options -Indexes
DirectoryIndex index.html
ErrorDocument 404 /404.html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# HTTPS un bez-www pāradresācija izslēgta, kamēr SSL nav apstiprināts. Ieslēgt, atkomentējot:
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://sahistiem.lv%{REQUEST_URI} [R=301,L]
# RewriteCond %{HTTP_HOST} ^www\.sahistiem\.lv$ [NC]
# RewriteRule ^ https://sahistiem.lv%{REQUEST_URI} [R=301,L]

# Partneru pāradresācija: servera līmenī NEVIENS kazino netiek pāradresēts.
# Visiem ir offer_id, tāpēc /goto/{slug}/ jāatver statiskā Keitaro lapa (goto/{slug}/index.html).
# winshark: netiek pāradresēts serverī (offer_id 880, Keitaro atrisina goto/winshark/index.html)
# slotoro: netiek pāradresēts serverī (offer_id 859, Keitaro atrisina goto/slotoro/index.html)
# need-for-spin: netiek pāradresēts serverī (offer_id 874, Keitaro atrisina goto/need-for-spin/index.html)
# wild-tokyo: netiek pāradresēts serverī (offer_id 873, Keitaro atrisina goto/wild-tokyo/index.html)
# mafia-casino: netiek pāradresēts serverī (offer_id 872, Keitaro atrisina goto/mafia-casino/index.html)
# mino-casino: netiek pāradresēts serverī (offer_id 856, Keitaro atrisina goto/mino-casino/index.html)
# kokobet: netiek pāradresēts serverī (offer_id 870, Keitaro atrisina goto/kokobet/index.html)
# rolling-slots: netiek pāradresēts serverī (offer_id 875, Keitaro atrisina goto/rolling-slots/index.html)
</IfModule>

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/xml application/javascript application/json image/svg+xml
</IfModule>
<IfModule mod_mime.c>
  AddType image/webp .webp
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 hour"
  ExpiresByType text/html "access plus 10 minutes"
  ExpiresByType image/webp "access plus 30 days"
  ExpiresByType image/png "access plus 30 days"
  ExpiresByType image/jpeg "access plus 30 days"
  ExpiresByType image/svg+xml "access plus 30 days"
  ExpiresByType image/x-icon "access plus 30 days"
</IfModule>
<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
  Header always set X-Frame-Options "SAMEORIGIN"
  Header always set Permissions-Policy "geolocation=(), microphone=(), camera=()"
  # Kad HTTPS darbosies visam domēnam:
  # Header always set Strict-Transport-Security "max-age=31536000"
</IfModule>
