Forum Moderators: phranque

Message Too Old, No Replies

url rewriting with proxy...

how to change domain name it has in proxy response

         

dionysos

6:50 pm on Dec 30, 2004 (gmt 0)



I have a rewrite rule
RewriteRule ^/(photos$) [web.com...] [R,S=2]
RewriteRule ^/(photos/$) [web.com...] [R,S=1]
RewriteRule ^(/.*) [my_ip_web...] [P]

But the links in my page www.web.com/aaaaa
are not
www.web.com/yyyyyy
but
my_ip_web/thelink?prev=tools&lang=sale&u=beta......
as they are coming from proxy...

I just want to make a rewriting of the url that comes from the proxy.
to transform the
my_ip_web/thelink?prev=tools&lang=sale&u=beta
into
www.web.com/yyyyyy

Thanx for kind information helping me to do the stuff.

jdMorgan

6:09 pm on Dec 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dionysos,

Welcome to WebmasterWorld!

You'll need to change the links on your page to the form "www.web.com/yyyyyy", and then use mod_rewrite to request those pages from your proxied server when someone clicks the link.

Mod_rewrite changes URL requests received from clients by your server before any content is served. Therefore, it can change incoming links, but not the links on your pages.

Jim