#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    4
    Rep Power
    0
    'm using a Cobalt RAQ 2 server with Linux, and I was wondering -- is it possible to make a file point to a URL? For example, if I have a file named www.mysite.com/file.tar, when somebody requests it I'd like my server to transparently redirect them to www.othersite.com/otherfile.tar. I'd really like it to be transparent and unnoticable to the user. Is that possible, using a .htacces file or something? I've seen it done on FTP sites, and I was wondering about Web sites.

    Thanks,
    Ishamael
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    14
    You can try 2 things:

    1) Use a 100% frame with the other file as source:

    <FRAMESET ROWS="100%" COLS="100%">
    <FRAME SRC="www.othersite.com/otherfile.tar">
    </FRAMESET>

    2) Or you can use a META redirect

    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.othersite.com/otherfile.tar">
    </HEAD>
    <BODY>
    </BODY>
    </HMTL>

    The CONTENT parameter says how long to wait. You can give the body some backgoundcolor so it looks like the page is loading, while it actually is going to another URL.

    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    6
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>You can try 2 things:

    1) Use a 100% frame with the other file as source:

    <FRAMESET ROWS="100%" COLS="100%">
    <FRAME SRC="www.othersite.com/otherfile.tar">
    </FRAMESET>

    2) Or you can use a META redirect

    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.othersite.com/otherfile.tar">
    </HEAD>
    <BODY>
    </BODY>
    </HMTL>

    The CONTENT parameter says how long to wait. You can give the body some backgoundcolor so it looks like the page is loading,
    while it actually is going to another URL.[/quote]

    If it was an html file, then you could use that method. Since it isn't you migh want to use an Apache conf file. Check out http://www.apache.org

    ------------------
    Regards,
    Jay A Betancourt
    Pixbay Web Hosting
    http://www.pixbay.net

IMN logo majestic logo threadwatch logo seochat tools logo