I need to write a custom module to map some static pages used as front page to some specific domains. For example,
- If domain is www.abc.com, the front page should be static_page_1
- If the domain is www.bcd.com, the front page should be static_page_2
I have made a form for administrator users to enter the domain name and the static page they want as front page, but now I don't have any idea on where and how to write the code for detecting the domain name and set the front page. Any information and suggestion will be very appreciated.
domain_config
– Hudri Oct 22 at 11:51