I researched the internet and the CF community but couldn’t find a working example.
I have registered four domains, the 1st one is primary domain and the rest are the variants of the primary. Whatsoever, I will be using the primary domain at all the times. So no matter whatever variant people type in the URL bar, they will always land at the primary domain. People could type any combination of domain, subdomain, destination page or even all.
Primary domain: axxxxxy .com
Variant domain names: axxxxxi .com, aaxxxxxy .com, aaxxxxxi .com
I believe the workflow would be something like this:
Add a wildcard A record for all domains.
Add a page rule in all the variant domains.
The page rule that I am looking for should redirect as below:
variant-domain .com/* >>> primary-domain .com/*
.variant-domain .com/ >>> .primary-domain .com/
I am not sure if this is what I would add:
variant-domain .com/ >>> $1primary-domain .com/$2
I would appreciate if someone could help me out with this.
Thanks in advance