View Single Post
Old 10-29-2002, 01:41 AM  
asmdude2001
Registered User
 
Join Date: Oct 2001
Posts: 23
A few things wrong with this:

Quote:
Originally posted by letshunt
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*somesite.com/ [NC]
RewriteRule /* http://www.yoursite.com [L,R]
Nothing that will stop it from working, but a few pointers:

a. the RewriteCond line should not look like that to save processing:
RewriteCond %{HTTP_REFERER} !^http://.*somesite.com [NC]

b. a second RewriteCond should be added to allow direct type in traffic for .html files
RewriteCond %{HTTP_REFERER !^$

c. this would allow direct type in traffic to like: site.com/file.html (usually ok and necessary for bookmarks)
__________________
Hi?
asmdude2001 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote