veo3/apache-htaccess.txt
2025-09-30 09:49:55 -05:00

23 lines
No EOL
782 B
Text

# .htaccess file for the frontend directory (/path/to/your/web/server/veo/.htaccess)
# This handles React Router routing for the SPA
RewriteEngine On
RewriteBase /veo/
# Handle React Router - redirect all requests to index.html except for files that exist
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /veo/index.html [L]
# Cache static assets
<FilesMatch "\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$">
ExpiresActive On
ExpiresDefault "access plus 1 year"
Header set Cache-Control "public, immutable"
</FilesMatch>
# Security headers
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode=block"