Forum Moderators: phranque

Message Too Old, No Replies

mod-rewrite http://www.xx.com to http://www.yy.com

... but Domain www.yy.com is not on my webserver

         

Uteho

3:12 pm on May 4, 2004 (gmt 0)

10+ Year Member



Hallo,
this is kind of tricky. I look for a way to have a user, coming from Domain www.yyy.com when he clicks to a link redirected to my webserver and the domain www.xx.com/something/... without him knowing he has ever changed the webserver.

There will be links with [xx.com...] on the webpage.

I know I could open the whole www.xx.com/something in a frameset which stays on www.yy.com, but I would prefer to do it by mod_rewrite.

Could I have a sobdomain on www.xx.com which I could rewrite to www.yy.com. But if www.yy.com was in the browser window, would the Browser not try to reach my page at www.yy.com when the refresh button was pressed.

I hope I got this clear. Thanks for a answer.

Regards

Ute

jdMorgan

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

WebmasterWorld Senior Member 10+ Year Member



Using iframes or setting up your server as a proxy for the other domain are the only ways I know of to do this.
mod_rewrite can't redirect to an external server without using a 301 or 302 redirect, both of which update the client's address bar. It is intentionally made difficult because there are few legitimate reasons to hide from users.

Jim