Options -MultiViews
RewriteEngine On

# Handle React Router routes - redirect to index.html for SPA
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(privacy-policy|terms-of-use|faq|blog)/
RewriteRule . /index.html [L]

# Redirect folder URLs to React Router (optional - for better UX)
RewriteRule ^privacy-policy/$ /privacy-policy [R=301,L]
RewriteRule ^terms-of-use/$ /terms-of-use [R=301,L]
RewriteRule ^faq/$ /faq [R=301,L]
RewriteRule ^blog/$ /blog [R=301,L]

