# Athlete OS — Apache reititys
# Kaikki pyynnöt -> index.php (paitsi olemassa olevat tiedostot)

Options -Indexes

RewriteEngine On

# Estä /install/ suora pääsy tuotannossa (poista rivi jos asennat)
# RewriteRule ^install/ - [F,L]

# Suojaa arkaluontoiset tiedostot
RewriteRule ^config\.php$ - [F,L]
RewriteRule ^auth\.php$   - [F,L]
RewriteRule ^\.installed$ - [F,L]
RewriteRule ^db/          - [F,L]
RewriteRule ^lib/         - [F,L]

# Ohjaa kaikki muu index.php:lle
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
