I am moving a site to a new domain and need the whole structure (of subdomains and domains) to stay intact while using a 301 redirect.
http://example.com/test/page to http://example2.com/test/page
also
http://wildcard.example.com/test/page/random to http://wildcard.example2.com/test/page/random