Click to See Complete Forum and Search --> : URL Masking With OUT Frames?


zone97
09-02-2004, 12:28 PM
I have 2 urls..

blah.servehttp.com <- points to an IP that is the server.
blah.com <- points to blah.servehttp.com

i want to set it so that if anyone goes to http://blah.servehttp.com the address bar will display http://blah.com

can this be done with javascript?

i do not want to use frames or iframes.

BTW: Im doing this so people remeber the blah.com address and not the blah.servehttp.com address.. Why? because its on a dynamic ip and a machine that can go down from time to time. I have a script running on the blah.com machine (perminate hosting) which check the temp machine for availablity, then if its there redirects. if not displays an offline page.. anyway.. hope you guys can help.. thanks

AdamGundry
09-02-2004, 01:25 PM
'Fraid not. URL "masking" is a side-effect of using frames, and an irritating one at that, because it prevents people bookmarking pages easily.

Adam

zone97
09-02-2004, 03:11 PM
Originally posted by AdamGundry
'Fraid not. URL "masking" is a side-effect of using frames, and an irritating one at that, because it prevents people bookmarking pages easily.

Adam

unfortunatly thats the reason i want it, to prevent bookmakring of the long url, and to only bookmark the short.

schizo
09-02-2004, 03:32 PM
My DNS provider supplied me with an option to "stealth" my alias URL. You might want to look into that.

For example...

www.mydomain.com (domain alias)
http://myserver.com/user/page.html (actual URL)

Stealthing it lets me point users directly to www.mydomain.com/page.html