RewriteEngine on
RewriteCond %{REQUEST_URI} !(.*)\.(css|js|htc|pdf|jpg|jpeg|gif|png|ico)$ [NC]
RewriteRule ^compteur/?$ index.php [NC,L]
RewriteRule ^releve/?$ index.php [NC,L]
RewriteRule ^[^/]+/(\d+)$ index.php?id=$1