Look please at this setup: There is a main vendor on the main domain, https://example.com . There are different (many) affiliates, having own subdomains, sub1.example.com , sub2.example.com , Affiliate subdomains are redirected with 302! to their according subfolders, https://example.com/sub1/ , https://example.com/sub2/ , Subfolders are canonicalized to the main vendor site, like https://example.com/sub1/ has rel="canonical"...
Originally asked by Evgeniy on Stack Exchange (webmasters) (CC BY-SA 4.0).