Looking for help on Java Script - Loading proper pages
I have a sub-domain (http://my_company.domain.com) & a domain (http://www.my_company.com). Both the sub-domain and the domain reside on the same host and both are active; so someone can go to the sub-domain & the domain and it will show the same stuff.
What I would like to happen is if someone goes to the sub-domain, it will check for the domain and load it automatically. Something like a script. I've checked for html & cgi scripts that will do this, but nothing. I was wondering if there is a java-script that will work??
You can take a look at my page:
sub-domain: http://training-cbc.hypermart.net
domain: http://www.training-cbc.com
So when someone tries to go to the sub-domain, I want the domain to load instead.
Thanks in advance,
Cupid
John Pollock posted this at 20:49 — 14th September 1999.
He has: 628 posts
Joined: Mar 1999
Hmm.. I haven't seen a javascript to do this. It seems there would be a CGI out there for it, but maybe no one has made it yet. I'll keep an eye out in case I see one.
----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
plumps posted this at 19:05 — 17th September 1999.
They have: 12 posts
Joined: Jul 1999
you could put an index page like the following into your http://training-cbc.hypermart.net account:
<html>
<head>
<title>redirect</title>
<meta http-equiv="REFRESH" content="1; url=http://www.training-cbc.com">
</head>
<body>
</body>
</html>
so if someones entering your site via http://training-cbc.hypermart.net, he will be forwarded to http://www.training-cbc.com
----------
http://plumps.com - webdesign & more
http://www.grandtheftau.to
JP Stones posted this at 20:43 — 17th September 1999.
They have: 2,390 posts
Joined: Nov 1998
That would also be my suggestion as it is so simple.
JP
----------
[red]The Next Step in Website Development [/red] - http://www.what-next.com
The Webmaster Promotion and Resource Center
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.