dudi/.htaccess
Simon Kühn fd473f00af Initial commit: Dudi habit tracker
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>
2026-04-29 15:40:57 +02:00

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]