Click to See Complete Forum and Search --> : determining the address


Beach Bum
01-20-2003, 12:04 AM
I have several domain names pointing to the same server directory (I cannot change that). But I would like the default pages to be different.

So when the index.htm page loads, I would like to see what is in the address and redirect the page to the right one.

For example, if the address was www.domain1.com vs www.domain2.com - when the index.htm page loads (which will be the same page) I would like to check some variable (I suspect in javascript?) to tell what the address was to redirect.

Any ideas? Is this as simple as checking a value and doing a replace (but what value)?

Beach Bum
01-20-2003, 06:43 AM
Thanks Dave - that does it.