Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts

    URL displayed in address bar

    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!
    tdavis

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.
    Omnis mico antequam dominus Spookster!

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Have you control of the domain name? if so, you might want to check out Just-The-Name.co.uk specifically, their url masking.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #4
    New Coder
    Join Date
    Feb 2005
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)
    {
    window.status=status_text;
    }

    </SCRIPT>

    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
    -----------------------------------------------

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    that won't change the address bar text.
    Omnis mico antequam dominus Spookster!

  • #6
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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!

    tdavis

  • #7
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •