<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /deribit-wallet-ai.com/

    # Forward static assets to public folder if they exist in public
    RewriteCond %{REQUEST_URI} !^/deribit-wallet-ai.com/public/
    RewriteRule ^(build/.*)$ public/$1 [L]
    RewriteRule ^(css/.*)$ public/$1 [L]
    RewriteRule ^(js/.*)$ public/$1 [L]
    RewriteRule ^(images/.*)$ public/$1 [L]
    RewriteRule ^(storage/.*)$ public/$1 [L]
    RewriteRule ^(favicon\.ico)$ public/$1 [L]

    # Send non-file requests to front controller
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
