|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'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
|
|||
|
|||
|
http://www.mysite.com/file.tar
#http://www.mysite.com/.htaccess RedirectMatch (.*).tar$ http://www.othersite.com/$1.tar |
|
#3
|
|||
|
|||
|
Thanks, it works wonderfully! But where did you learn that? Is there some sort of .htacces reference manual somewhere that I could look at?
Thanks, Ishamael |
|
#4
|
|||
|
|||
|
From http://www.apache.org/docs/mod/directives.html
Be sure to check out http://www.apacheweek.com/ |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Redirecting Files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|