I own, say, 100 domains. I want to add redirect for each of them to a new domain. And not only to a domain, but a custom query string. For instance
domain1.example/url1 -> domain11.example/url2
domain2.example/url1/url4 -> domain15.example/fdsafds/url33/url555
# and so on......., 100 domains with 100+ URLs each
All the original URLs and the new ones are known beforehand. And there're hundreds of URLs for each domain.
Requirement: there has to be an intermediate "domain-redirector" via which the domains will be redirected, and that'll do all the job:
domain1.example/url1 -> my_redirector.example/url1 -> domain11.example/url2
domain2.example/url1/url4 -> my_redirector.example/url1/url4 -> domain15.example/fdsafds/url33/url555
# and so on.......
This way I'd create A record for each of the domains pointing to
my_redirector.example. And at
my_redirector.example I'd be able to extract a) original query string from the URL b) original domain
Note that it needs to work with both http and https.
Question 1: will original domain and URL or query path be accessible at
Question 2: will I have to create a SSL certificate for each of the original domains
my_redirector.example, in order to be able to redirect https requests?
P.S. I'm a developer, therefore I'm capable of writting a custom utility to facilitate redirects at