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)