- Removed area/ directory with 816MB of media files - Removed sensitive FTP credentials from Git history - Implemented .env.upload system for secure deployments - Added comprehensive .gitignore for future protection This commit represents a clean slate with all sensitive data removed.
28 lines
927 B
ApacheConf
Executable File
28 lines
927 B
ApacheConf
Executable File
RewriteEngine On
|
|
|
|
# API Routes zu index.php weiterleiten
|
|
RewriteCond %{REQUEST_URI} ^/api/
|
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
|
|
|
# React Router: Alle anderen Requests zu index.html (außer existierende Dateien)
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} !^/area/
|
|
RewriteRule . index.html [L]
|
|
|
|
# Optional: Gzip Komprimierung
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/json
|
|
</IfModule>
|
|
|
|
# Optional: Browser Caching
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive on
|
|
ExpiresByType text/css "access plus 1 month"
|
|
ExpiresByType application/javascript "access plus 1 month"
|
|
ExpiresByType image/png "access plus 1 month"
|
|
ExpiresByType image/jpg "access plus 1 month"
|
|
ExpiresByType image/jpeg "access plus 1 month"
|
|
ExpiresByType image/webp "access plus 1 month"
|
|
</IfModule>
|