I want to redirect specific wildcard subdomain to a specific URL on another domain. Both domains are on the same server/public_html, and redirect all the inner pages of the wildcard subdomain to the inner pages of the other domain.
For example:
- redirect
music.example.com
toanother.example/music/
and
redirect
music.example.com/happy-birthday/
toanother.example/happy-birthday
redirect
music.example.com/sing-to-you/
toanother.example/sing-to-you/
I have more than 100k posts so I cannot make the redirection of the inner pages one by one using .htaccess
.