RewriteEngine On # Autorise le header Authorization SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 RewriteCond %{REQUEST_URI} !^/api/v2/docs RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^(.*)$ ../../apiv2.php?request=$1 [QSA,NC,L]