If I want to apply a rule to only some files in apache2.conf, I can use <FilesMatch>. For example: <FilesMatch ".(gif|jpg|jpeg|png|mpg|avi)$"> deny from env=hotlink ...
I have written a list of regular expressions that currently redirect unused pages to the appropriately used pages e.g. if someone were to request abc.aspx it redirects them to home.aspx in IIS however ...