Comment ignorer la réécriture du fichier CSS avec .htaccess

J’ai créé le fichier .htaccess:

RewriteRule ^([a-zA-Z]{0,2})/(.*)/(.*)$ index.php?lang=$1&ctrl=$2&method=$3 [L] RewriteRule ^([a-zA-Z]{0,2})/(.*)$ index.php?lang=$1&ctrl=$2 [L] RewriteRule ^(.*)/(.*)$ index.php?ctrl=$1&method=$2 [L] RewriteCond %{QUERY_STRING} !ctrl RewriteRule ^(.*)/?$ index.php?ctrl=$1 [L] 

et j’en ai besoin pour ignorer la réécriture des fichiers css inclus.

Merci pour votre réponse 🙂

Gardez vos règles comme ceci:

 RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([a-zA-Z]{0,2})/([^/]+)/([^/]+)/?$ index.php?lang=$1&ctrl=$2&method=$3 [L,QSA] RewriteRule ^([a-zA-Z]{0,2})/(.*)$ index.php?lang=$1&ctrl=$2 [L,QSA] RewriteRule ^([^/]+)/([^/]+)/?$ index.php?ctrl=$1&method=$2 [L,QSA] RewriteCond %{QUERY_STRING} !ctrl RewriteRule ^([^/]+)/?$ index.php?ctrl=$1 [L,QSA] 

Vous pouvez le faire avant vos autres lignes je crois.

 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d 

Voici un tout petit peu plus d’informations à ce sujet: https://stackoverflow.com/questions/15879029/don%C2%B4t-understand-rewritecond-request-filename-f-and-d