jigidyjim
09-07-2003, 10:27 PM
Hello, I have two domain names, call them www.a.com and www.b.com, but only one web host. The web host says I cannot have the two names point to different areas on the server without some complicated billing thing that I don't understand.
What I'd like to do is use javascript to redirect the user to a specific page depending on what address they are trying to reach.
For example:
http://www.a.com would go to what is currently www.a.com.
But if the user tried to go to
http://www.b.com, the javascript would ideally rerout the user to http://www.a.com/bpage.html instead of http://www.a.com which is what it currently does.
Is this possible and reliable?
What I'd like to do is use javascript to redirect the user to a specific page depending on what address they are trying to reach.
For example:
http://www.a.com would go to what is currently www.a.com.
But if the user tried to go to
http://www.b.com, the javascript would ideally rerout the user to http://www.a.com/bpage.html instead of http://www.a.com which is what it currently does.
Is this possible and reliable?