Thread: .htaccess
View Single Post
Old 2007-11-09, 06:10 PM   #1
NY Jester
ICQ:147*079*406
 
NY Jester's Avatar
 
Join Date: Oct 2007
Location: Rock*ME*Hardplace
Posts: 2,996
Send a message via ICQ to NY Jester Send a message via AIM to NY Jester
.htaccess

Hey all, I wanted to set up my directories for custom error pages as well as my image directory from hotlinking or image thieves, here is what I have ..

for the error pages

ErrorDocument 402 http://www.my-site.com/error/index.htm
ErrorDocument 403 http://www.my-site.com/error/index.htm
ErrorDocument 404 http://www.my-site.com/error/index.htm
ErrorDocument 405 http://www.my-site.com/error/index.htm
ErrorDocument 500 http://www.my-site.com/error/index.htm

and for the hotlinking issue

RewriteEngine On
RewriteCond %{HTTP_REFERER} !http://www.my-site.com
RewriteCond %{HTTP_REFERER} !http://my-site.com
RewriteRule /* http://www.my-site.com/free-image-area/index.htm



Thanks
J-

__________________
The Sexy Side of Porn
NY Jester is offline   Reply With Quote