<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule .* index.php [L,R]
#RewriteCond %{HTTP_HOST} ^www\.ebb365\.com$
#RewriteRule ^(.+) /$1 [L]
#RewriteCond %{HTTP_HOST} [^.]+\.ebb365\.com$
#RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
#RewriteRule ([^.]+)\.ebb365\.com(.*) /$1$2
#RewriteRule ^/?index\.html$ index.php [L]
#RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/([a-zA-Z_]+)$ display.php?country=$1&state=$2&city=$3 [L]
RewriteCond %{HTTP_HOST} ^news\.example\.com$
#RewriteCond %{HTTP_REFERER} ^news\.example\.com/(.*)$
RewriteRule .? http://test.example.com%{REQUEST_URI} [L,R]
#RewriteRule ^/?$ http://test\.example\.com [L,R]
#RewriteRule .* index.php [L,R]
</IfModule>