Hi guys, i need a url rewrite rule (IIS or Apache) that will rewrite each request from old domain to new domain.
Please note that it has to rewrite also subdomains and even query string, example bellow;
products.olddomain.com > products.newdomain.com<br />
www.olddomain.com/default.aspx?test=1 > www.newdomain.com/default.aspx?test=1
and not only that, it even has to keep protocol, so if there was request like this;
https://olddomain.com it should be https://newdomain.com
and please, i don't want to see examples for one subdomain, etc... i have hundrests of subdomains, which are generic, so this whole rule should be dynamic, and be able to accept all kind of links, and in any kind of form, and should "simply" switch from one domain to other, keeping link structure.
one more thing, this should be a permanent redirect
thank you in advance