View Full Version : URL displayed in address bar

02-24-2005, 05:44 PM
If I redirect a URL to another location, the "redirected to" location shows up in the address bar. Is there anyway to avoid this? I would like to have the domain name stay the same in the address bar and not show the actual location. Here is an example: http://www.rcr.name actually goes to http://www.tdavisconsulting.com/rcr. The latter shows up in the address bar after redirection takes place.

Thanks for you help!

02-24-2005, 08:01 PM
Well you can of course use frames. But this is just bad ju ju, why would you not want the user to know exactly where they are? If they really want to know it's not hard to find out, and the solution will cause more problems in terms of search engine indexing and bookmarking.

02-24-2005, 08:39 PM
Have you control of the domain name? if so, you might want to check out Just-The-Name.co.uk specifically, their url masking.


02-24-2005, 10:07 PM
Use this:

<SCRIPT language="JavaScript">

//-- Script to give a link a description visible in the status bar.
//-- onMouseover="write_it('Add your text here');return true;" //-- onMouseout="write_it('');return true;"

function write_it(status_text)


Put that between the head tags...


<a href=" " onMouseover="write_it('What you want to appear!');return true;" onMouseout="write_it('');return true;">Link Description</a>

Try that,

Hope that helps you..

Ben :)

02-25-2005, 04:03 PM
:confused: that won't change the address bar text.

02-25-2005, 07:08 PM
So, there is no solution?

I have asked this before and received the same response. I guess that MHTML is saying that the "status bar" and "address bar" are two different things. He is right that what I want to do is control what is displayed in the ADDRESS BAR. Why would I want to do this? Because I want to know if it can be done, not necessarily to actully do it. Although I dont really see why it should not be done. I am not trying to hide the actual address. The domain www.rcr.name already uses frames by the way...

If anyone else has any ideas, I would be appreciative!


02-25-2005, 07:16 PM
There are many reasons why this sort of thing isn't possible. Just imagine this scenario.

You recieve an email from your bank notifying you of a change to the net banking facilities they provide. You click the link to see for yourself. The status bar text shows www.yourbank.com when you mouseover it, when you click it however it sends you to www.somedomain.com/hackers/bankfraud.html. On that page they have a script that changes the address to www.yourbank.com, everything seems just fine to the unweary user. They login to use net banking, they get a message saying the service is being upgraded and to come back later. Nothing seems out of the ordinary. Later on you type in www.yourbank.com and use net banking, only to find all of your life savings have been swindled.