Lets say I have a website with 2 domains pointing to the same thing. Lets say I own the domains d1.com and d2.com. If someone accessed the site through d1.com, would it be possible for it to say something like "Welcome to d1.com", while if you access the same website through d2.com, it would say "Welcome to d2.com"? Basically, I want to know if you could do this for like any text on the page, changing it based on what domain is entered by the user. Thanks
Yes, you can output text based on the server name. For example if you're using PHP, echo 'Welcome to ' . $_SERVER ['SERVER_NAME']; PHP: