# React Router: Redirect all requests to index.html except for existing files and directories
<IfModule mod_rewrite.c>
RewriteEngine On
# Якщо файл або директорія існують - не переписувати URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Перенаправлення всіх запитів на index.html
RewriteRule ^ index.html [L]
</IfModule>
# Додаткові заголовки безпеки (опціонально)
<IfModule mod_headers.c>
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit