I've used referrer checking before to show a different template on a page like this:
Code: Select all
RewriteCond %{HTTP_REFERER} traderA.com [OR]
RewriteCond %{HTTP_REFERER} traderB.com [OR]
RewriteCond %{HTTP_REFERER} traderC.com
RewriteRule ^index.php$ new.php [L]
Code: Select all
RewriteCond %{HTTP_REFERER} traderA.com
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^video/([^/]+)/index.html$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&slug=$1&force_template=embed2 [L]
RewriteRule ^video/([^/]+)/index.html$ /scj/tube/?slug=$1&force_template=embed2 [L]
RewriteRule ^video/([^/]+)/$ /scj/tube/?slug=$1&force_template=embed2 [L]
RewriteRule ^video/([^/]+)/([0-9]{1,2}).html$ /scj/tube/?slug=$1&item_id=$2&force_template=embed2 [L]