AddDefaultCharset UTF-8

<IfModule mod_php.c>
    php_value default_charset "UTF-8"
</IfModule>
<IfModule mod_php8.c>
    php_value default_charset "UTF-8"
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Local XAMPP : public/ n'est pas la racine Apache
    RewriteCond %{HTTP_HOST} ^localhost$
    RewriteRule ^(.*)$ /art-road/public/index.php [QSA,L]

    # Production OVH : public/ est la racine du domaine
    RewriteCond %{HTTP_HOST} !^localhost$
    RewriteRule ^(.*)$ /index.php [QSA,L]
</IfModule>

<FilesMatch "\.(env|json|lock|md|sql|log|sh)$">
    Require all denied
</FilesMatch>

<FilesMatch "^\.">
    Require all denied
</FilesMatch>
