RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*(jsessionid|JSESSIONID).*$ RewriteRule ^.*\.(jpg|gif|png|pdf|bmp|jpeg|ico|mid|mp3|wma|doc|wmv|avi|mpg|htm|html)$ http://www.dominiopublico.gov.br [R,L]