OK, so Ive worked out that .htaccess is just a .txt file with the txt removed.
this is the template that I found elsewhere in the download pack:
-- start
<Files .htaccess>
order allow,deny
deny from all
</Files>
IndexIgnore */*
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com/.*$ [NC]
RewriteRule .(gif|jpg|txt|xml|png)$ - [F]
-- end
My question is twofold:
(1) if my domain name is abc.co.uk, is the format of the rewriteCond line like this:
RewriteCond %{HTTP_REFERER} !^http://(www.)?abc.co.uk/.*$ [NC]
(2) which folders should I place copies of .htaccess in?
Many thanks
|