RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC] RewriteCond %{HTTP_REFERER} !^http://domain.com [NC] # I want to ignore all *-t.jpg files but can't figure out how RewriteCond %{REQUEST_FILENAME} -f ^(.+)-t.jpg [NC] # forward elsewhere RewriteRule \.(gif|jpg|png|swf)$ http://www.domain.com/images/hotlinking.gif [R,L]