Click to See Complete Forum and Search --> : 2 domain names different text on home page


arthuro
04-02-2003, 10:54 AM
Hi, I hope some can help me. I have a website which has 2 domain names.
If a user1 put in domain1.com I need him to see text on the bottom of the page. If a user2 uses domain2.com this text should not appear.
If user2 returns to the home page from inside the site then he should still not see this additional text.

So, to restate, this text appears based on the url used to hit my site.

the home page is index.asp.

Thanks for any help.

jdavia
04-03-2003, 11:09 PM
Originally posted by arthuro
Hi, I hope some can help me. I have a website which has 2 domain names.
-------
So, to restate, this text appears based on the url used to hit my site.

the home page is index.asp.

Thanks for any help.
Now how can I get to index.asp? You have to do better with the address.

pyro
04-04-2003, 07:09 AM
I'm assumbing that ASP has a way to get the domain name that the page resides on, something similar to this PHP: $_SERVER['SERVER_NAME'] which will return www.yourdomain.com. Then, what you can do is write the text or not write the text based on the results of this. If you need more help, I can show you a PHP version, and you can use that to help yourself with the ASP version.