I have two htaccess rules that I would like to move to httpd.conf because I hear that's better for performance. I tried just copy-pasting them into httpd.conf but it doesn't use the same syntax I suppose because it didn't work. Can someone please show me what the httpd.conf equivalent of these two .htaccess rules will be:
# DISABLE HOTLINKING
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png|js)$ - [F]
# PREVENT ALL ACCESS TO THIS FILE
<files admin.php>
order allow,deny
deny from all
</files>
Many thanks.