Symfony 8 SPA with Doctrine ORM, Symfony Security, vanilla JS frontend. Migrated from plain PHP (delight-im/auth + raw SQL) to full Symfony stack. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
396 B
ApacheConf
15 lines
396 B
ApacheConf
RewriteEngine On
|
|
RewriteBase /dd/
|
|
|
|
# Composer-Dateien nicht ausliefern
|
|
<FilesMatch "^(composer\.(json|lock))$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
# API-Requests an api.php weiterleiten, Pfad als Query-Parameter
|
|
RewriteRule ^api/(.+)$ api.php?_path=$1 [L,QSA]
|
|
RewriteRule ^api/?$ api.php [L,QSA]
|
|
|
|
# Alles andere an index.php (SPA)
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.php [L]
|