apache redirect based on referrer

You can forward all visitors who are not using your own domain with the following rewrite rules:


RewriteEngine On
RewriteCond %{HTTP_HOST} !.*?agilegrad.com$ [NC]
ReWriteRule /(.*)$  [R=301,L]