# Panel front controller: everything that is not a real file goes to index.php.
DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Let's Encrypt validation files and static assets are served as they are.
    RewriteRule ^\.well-known/ - [L]
    RewriteRule ^assets/ - [L]

    # Existing files (index.html, index.php) are served as they are; every other URL (/sso/<uuid>, /api/...) goes to index.php.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

