Hi, What i want to do is Step1. CNAME Record: points www.subdomain.mydomain.com to www.affiliate.com Step2. 301 redirect: points subdomain.mydomain.com to www.subdomain.mydomain.com now i have added CNAME Record and Step1 is working. when i open www.subdomain.mydomain.com it opens www.affiliate.com thats fine. Problem with Step2. to complete Step2 i have made .htaccess file with these rules RewriteEngine On RewriteCond %{HTTP_HOST} ^subdomain.mydomain.com RewriteRule (.*) http://www.subdomain.mydomain.com/$1 [R=301,L] Code (markup): now the problem is that when i open subdomain.mydomain.com it opens mydomain.com now i don't know what to do?
Change to the following:RewriteEngine On RewriteCond %{HTTP_HOST} ^subdomain.mydomain.com RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L] Johnny Mazuma