SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Thread: url masking...

  1. #1
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    url masking...

    i've seen quite a few sites out there that mask their urls.

    example: i go to www.anysite.com and i click on an internal link. after the page loads the url in the address bar still says www.anysite.com. essentially, the address never changes.

    is this something that you can select when you register a url or is it something you can do via javascript?

  2. #2
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are two ways that I know of to make this happen....

    This is the result if you have your url redirected with masking.

    Basically, the server hosting your domain name makes up a frames page and tells that frames to load the contents of your actual web url.

    When users navigate your website, every page loads into that same frame, which is why your domain name will always be in the address bar.

    The down side with this is that you won't necessarily have editorial access to that frames page in order to change the title or add meta tags.


    Another way to make this happen is to make a your site in frames yourself.

    Basically, you make your index.htm or default.htm as the frames page and tell the frame to load the main page, such as home.htm, when the site is first loaded. Many people will tell you to avoid frames, but they do have their plus points. For example, on my Postfive website, I have a calendar set up which is provided by an outside source. Because my site uses frames, my users can go to this calendar, but my url stays in the address bar and the title and navbar remain on view.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  3. #3
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the sites i've seen don't use frames to accomplish this. i've looked in the code, but there isn't anything on the client side that does it.

    i remember back in college a friend of mine did this sort of thing for a student organization we were involved with. i don't remember what it was called or where he did it, but he got the url "welcome.to.mysite"... the url would stay the same when you clicked on any local links.

    it was really annoying because you couldn't bookmark the pages you really wanted, it would just bookmark the main address.

  4. #4
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's really odd.....I've only known this to happen with frames. Do you have the url's of the non-frame sites you've seen that work like this. I'd like to have a go at pulling the code apart to try to find out how it works. The answer has to be in there somewhere!!
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  5. #5
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the most recent site i saw that did this is http://www.byerman.com

    the site is actually located on tripod (check out the status box when you hover over the links)...

  6. #6
    SitePoint Wizard wdmny's Avatar
    Join Date
    Jul 2000
    Location
    Here
    Posts
    1,010
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That byerman site IS using frames, just check the source of a page off of the main page and you can see.

  7. #7
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You beat me to it Wes!!
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  8. #8
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah, www.mydomain.com provide URL masking using a frame, they allow you to edit your frame content too!

  9. #9
    SitePoint Wizard dominique's Avatar
    Join Date
    Dec 2000
    Location
    orbis terrarum
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I still don't get the www.anysite.com example. When I click on all the local links (that stay on anysite's site) I get URLs like http://www.anysite.com/dot_com.htm and http://www.anysite.com/retail.htm, etc.

    Am I missing something here?

  10. #10
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh duh ! sorry for wasting your time wes demonkey!

    thanks for the info nicky.

    dominique, www.anysite.com was just an example (a bad one at that). i just used the first thing that popped up in my head.

  11. #11
    SitePoint Wizard dominique's Avatar
    Join Date
    Dec 2000
    Location
    orbis terrarum
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by cow
    oh duh ! sorry for wasting your time wes demonkey!
    Now you shot yourself in the foot!

  12. #12
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by dominique
    Now you shot yourself in the foot!


Bookmarks

Posting Permissions

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