View Single Post
Old 10-31-2007, 10:06 AM  
Vendot
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Malaysia
Posts: 3,376
Can someone comment on whether this htaccess code is right?
Or have i added something or missed something out?


RewriteEngine On
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_REFERER} !^http://domain.com
RewriteCond %{HTTP_REFERER} !^http://www.domain.com
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/index.html [L]
#domain.com/index.html - your custom hotlinker page

ErrorDocument 404 http://domain.com
DirectoryIndex index.html
__________________
"In a Time of Universal Deceit, Telling the Truth is a Revolutionary Act." - George Orwell
Vendot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote