React/Vite Frontend (hifi-src) + PHP/MariaDB Backend (hifi/api) fuer den Car-Hifi Umbau-Shop HifiPlanet in Amorbach, inkl. Admin-Panel, 2FA, Wartungsmodus, Cookie-Consent und rechtlichen Pflichtseiten. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
15 lines
503 B
ApacheConf
15 lines
503 B
ApacheConf
RewriteEngine On
|
|
RewriteBase /hifi/
|
|
|
|
# API-Requests an den PHP-Front-Controller weiterleiten
|
|
RewriteCond %{REQUEST_URI} ^/hifi/api/
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^api/(.*)$ api/public/index.php [QSA,L]
|
|
|
|
# Dynamische sitemap.xml (DB-generiert)
|
|
RewriteRule ^sitemap\.xml$ api/public/sitemap.php [L]
|
|
|
|
# Alles andere: SPA-Fallback auf index.html (React Router übernimmt das Routing)
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^ index.html [QSA,L]
|