Quote:
|
Originally Posted by AdultNex
Save yourself money and redirect the Google image searches.
|
how do you do this?
i tried putting this code in the htaccess file:
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://name.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://name.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.name.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.name.com$ [NC]
RewriteCond %{REQUEST_URI} !^/IMAGENAME\.gif[NC]
RewriteCond %{REQUEST_URI} !^/images/IMAGENAME\.jpg[NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
ErrorDocument 302
http://www.name.com
ErrorDocument 400
http://www.name.com
ErrorDocument 401
http://www.name.com
ErrorDocument 403
http://www.name.com
ErrorDocument 404
http://www.name.com
ErrorDocument 408
http://www.name.com
ErrorDocument 500
http://www.name.com
but it doesn't seem to redirect for me