Redirect subdomain to subdomain on new domain
- by Ali
Hello,
I own 2 domains sio-india.org and sio-india.com
What i want to do is redirect all the subdomains from 1st domain to 2nd domain. eg. home.sio-india.org to home.sio-india.com
but i dont want to redirect sio-india.org to sio-india.com
and also dont want to redirect www.sio-india.org to www.sio-india.com
Please help
I am using this code in htaccess but it is not working.
RewriteCond %{HTTP_HOST} ^(.*)sio-india\.org$ [NC]
RewriteRule ^(.*)$ http://%1sio-india.com/$1 [R=301,L]
Please hepl me I am stuck.