A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: URL Masking/hiding

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    5
    I've designed a site which is being hosted on one sever which has a URL of http://www.whatever.com (I can't give the real server source, I've been asked not to to stop too much traffic going to the wrong page) and I need the URL to show up as http://www.japukmeets.co.uk

    Does anyone know how to do this? The simplier, the better, I'm not adverse to a bit of DHTML or javascript, but I'm not sure exactly what languages the server supports (eg php) so, like I said, the simplier, the better.

    Please reply asap, links or code, I don't care.

    Cheers all.

    Slowdown? What slowdown? Didn't you know this was a slideshow

  2. #2
    .::POOP::.
    Join Date
    Aug 2000
    Posts
    260
    "cloaking" URL's is pretty easy.
    As long as you have access to both servers, this is how it's done:

    on the japukmeets.co.uk server, the index.html file is:
    Code:
    <html>
    <head>
    <title>YOUR TITLE HERE</title>
    </head>
    <frameset rows="100%,*" frameborder="0" framespacing="0">
      <frame name="top" src="http://www.YOUR SERVER HERE.com/index.html" noresize>
      <frame name="bottom" src="http://www.YOUR SERVER HERE.com/blank.html" noresize>
      <noframes>
      <body>
      <p>This page uses frames, but your browser doesn't support them.</p>
      </body>
      </noframes>
    </frameset>
    </html>
    replace the bold print with the correct info. the http://www.YOUR SERVER HERE.com is the OTHER server NOT japukmeets.co.uk...

    on the OTHER server (whatever.com in this case) you have 2 specific files (i know you have more but the code above only needs to know where 2 files are.)

    The first file is the index.html file that the entire domain "whatever.com" is based on. So when you go to "whatever.com", the page that loads is the page to want the first frame to load.

    The second frame (invisible) loads blank.html just as a place holder. save this code as blank.html and upload it to the "whatever.com" server:
    Code:
    <html>
      <body>
      </body>
    </html>
    so the index.html file at japukmeets.co.uk loads the index.html file from "whatever.com" in the top frame (which is 100% of the browser window) and blank.html from "whatever.com" in the bottom frame (which is not visible) making the url display "http://www.japukmeets.co.uk"

    hope this helped.

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    5
    It helped to some effect (now I know how to do it in that situation), however, thats not exactly what I meant.

    Let me explain a little more.

    When the user first puts in the URL http://www.japukmeets.co.uk it then forwards them to http://www.hostedserver.com

    - There is only one server involed.

    I want the orignal URL in the address bar to stay as http://www.japukmeets.co.uk

    I know it can be done, I just don't know how. I'm not exaclty sure.

    Thanks, Adam.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center