
December 28th, 1999, 01:38 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Can somebody please help me with this problem ?
I have many URLs registered, but all pointing at the same address WWW.MYNAME.COM
Is it possible to write a JS to be placed in the head wich does the following: check what is written in the URL box and redirect to a subfolder!
ie:
If URL=MYNAME.COM then stay on page
If URL=ALFA.NET then goto MYNAME.COM/ALFA
If URL=BRAVO.COM then goto MYNAME.COM/BRAVO
.. and so on
Sorry for this BASIC look of the code !
I think it can be done using History(0) (or maybe -1, it depends I think). It shoulkd be in the very first lines of the page, so to redirect away asap.
Thankyou very much for any help you can give me !
Bye
|