Forum Moderators: phranque

Message Too Old, No Replies

Hide link of redirected URL

         

alexandra

2:05 am on Oct 16, 2004 (gmt 0)

10+ Year Member



Hi

Could you anyone be kind to let me know if it is possible to make it this way:

When a visitor download any of the files in [site1.com...] hide the link,and show him or her the link [site1.site2.com...]

Is it possible to be done by mod rewrite way?I will appreciate any of your help!

Thanks and best regards
Alexandra

jdMorgan

3:35 am on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alexandra,

It's not very clear what you are trying to do. Can you explain a little bit more about this?

Also, you are referring to a second site. Is this site on the same server, or is it on another server? Is this second site under your control? Do you want the second site to see these requests as coming from your site?

You may be able to use a combination of URL rewriting and mod_proxy to do this, depending on the answers to these questions.

Jim

alexandra

7:45 am on Oct 18, 2004 (gmt 0)

10+ Year Member



Hi,Jim

Thanks for your reply.

The two sites are all under my control, but they are on different servers.How can I combine URL rewriting and mod_proxy to do this?

What if the second site is not under my control? How can I hide these requests coming from your site?

thanks
Alexandra

jdMorgan

12:47 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alexandra,

Using mod_proxy, you can make a second server appear to be "inside" your own server. However, the server logs on the second server will show all requests coming from your server, rather than from the originating "browser".

See the Apache mod_proxy ProxyPass [httpd.apache.org] directive for more information.

Jim

alexandra

4:18 pm on Oct 18, 2004 (gmt 0)

10+ Year Member



Hi, Jim

I am new to mod proxy,actually,after reading the documentation, I tried it this way:

ProxyRequests Off
proxypass [site1.com...] [site2.com...] [P]

This file (http://www.site1.com/file/abc.zip) does not exist,but [site2.com...] does exist. I want it to be redirected without knowing by the visitor even they are using download manager software or something like that.

but it showed me internal server error,can you please help?

thanks
alexandra

jdMorgan

6:23 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using a local path for /file/abc.zip, as shown in the ProxyPass documentation.

Jim