determining the address

liunx

Guest
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.<br />
<br />
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.<br />
<br />
For example, if the address was <!-- w --><a class="postlink" href="http://www.domain1.com">www.domain1.com</a><!-- w --> vs <!-- w --><a class="postlink" href="http://www.domain2.com">www.domain2.com</a><!-- w --> - 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.<br />
<br />
Any ideas? Is this as simple as checking a value and doing a replace (but what value)?<!--content-->Thanks Dave - that does it.<!--content-->
 
Back
Top