# CMS nu — adapté racine OU sous-dossier
Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    # Si le CMS est dans un sous-dossier (ex. https://domaine.fr/test/), décommente :
    # RewriteBase /test/

    RewriteRule ^robots\.txt$ robots.php [L]
    RewriteRule ^sitemap\.xml$ sitemap.php [L]

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

    RewriteRule ^(.*)$ index.php?r=$1 [L,QSA]
</IfModule>
