For example my domain is www.mydomain.com and I have subdomain like subdomain.mydomain.com/action?qs1=1
Now I have changed my previous subdomain URL to www.mydomain.com/subdomain/action?qs1=1
Please let me know how to write rule in htaccess to redirect
subdomain.mydomain.com/action?qs1=1
to
www.mydomain.com/subdomain/action?qs1=1
Thanks