Options -Indexes
DirectoryIndex public/index.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Public içindeki gerçek dosya/klasörleri domain kökünden servis et.
    RewriteCond %{DOCUMENT_ROOT}/public/$1 -f [OR]
    RewriteCond %{DOCUMENT_ROOT}/public/$1 -d
    RewriteRule ^(.+)$ public/$1 [L]

    # Tüm uygulama rotalarını front controller'a gönder.
    RewriteRule ^$ public/index.php [L]
    RewriteRule ^(.+)$ public/index.php [L]
</IfModule>
