Forum Moderators: phranque
# Deny all .htaccess, .DS_Store, ._* (resource fork) files
<Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss]|[_])">
Order allow,deny
Deny from all
Satisfy All
</Files>
# deny access to all .log and .comment files
<Files ~ "^.*\.([Ll][Oo][Gg]|[cC][oO][mM][mM][eE][nN][tT])">
Order allow,deny
Deny from all
Satisfy All
</Files>
# Deny access to .ht*
#<Files ~ "^\.ht">
#order allow,deny
#deny from all
#</files>
# Allow access to all
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
# Access types allowed
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
# Disable all indexing
Options All -Indexes
################################################## CACHING BELOW
Header unset ETag
FileETag None
# MONTH
#<FilesMatch "\.(flv|gif|jpg|jpeg|png|bmp|ico|swf)$">
#Header set Cache-Control "max-age=2592000"
#</FilesMatch>
# WEEK
#<FilesMatch "\.(js|css|pdf|txt)$">
#Header set Cache-Control "max-age=604800"
#</FilesMatch>
# DAY
#<FilesMatch "\.(html|htm|php)$">
#Header set Cache-Control "max-age=43200"
#</FilesMatch>
##################################################
# Engine
RewriteEngine On
Options +FollowSymLinks
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Root redirect exclusions
# Exclude hostnames "(www.)example.co.za" and blank
RewriteCond %{HTTP_HOST} !^((www\.)?exquisiteinteriors\.co\.za\.?(:[0-9]+)?)?$
RewriteCond %{HTTP_HOST} !^((www\.)?justride\.za\.net\.?(:[0-9]+)?)?$
RewriteCond %{HTTP_HOST} !^((www\.)?kombination\.za\.org\.?(:[0-9]+)?)?$
RewriteCond %{HTTP_HOST} !^((www\.)?trekairways\.za\.org\.?(:[0-9]+)?)?$
RewriteRule ^(.*)$ [blog.the3rdrock.com...] [R=301,L]
################################################## HOTLINKING BELOW
# Hotlinking
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC]
#RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?the3rdrock\. [NC] [OR]
#RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?exquisiteinteriors\. [NC] [OR]
#RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?justride\. [NC] [OR]
#RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?kombination\. [NC] [OR]
#RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?trekairways\. [NC]
#RewriteRule \.(gif|jpe?g?|png|bmp|ico|swf|pdf)$ - [F,NC,L]
I've now read the topic in your reply, but it still hasn't helped me.