Yes it will work if you put that code in your .htaccess
coldabhishek Reviewed by coldabhishek on . best way to move a subdoamin to its own domain name I have 40k+ indexed google pages for one of my subdomains called name; like http://name.mysite.com now i want to move this subdomain to its own domain name like http://www.name.com but at the same-time i want to keep all the already indexed links valid; that is all pages like http://name.mysite.com/nme.php?var=.... Rating: 5