|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
'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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
<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 |
![]() |
| Viewing: Dev Shed Forums > Web Hosting > Web Hosting > Redirecting Files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|